@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
|
@@ -10,8 +10,8 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
import dayjs from 'dayjs';
|
|
11
11
|
import { locales } from "@pisell/utils";
|
|
12
12
|
import { getCacheParams, getServeStartTime, getLastServer, flexibleObj, getServiceTimes, findNextDuration, getDays, isSessionProduct } from "../utils";
|
|
13
|
+
import { isNormalProductByDurationSchedule } from "../info/service2/utils";
|
|
13
14
|
import { isOption } from "../../ticketBooking/components/addServiceVariant/utils";
|
|
14
|
-
import { isMultiDayProduct } from "./service/addService/utils";
|
|
15
15
|
|
|
16
16
|
// 获取当前剩余量
|
|
17
17
|
var getUseableEventCount = function getUseableEventCount(eventList, current) {
|
|
@@ -321,7 +321,7 @@ export var getAppointmentTimingPreference = function getAppointmentTimingPrefere
|
|
|
321
321
|
* @Date: 2024-01-26 14:09
|
|
322
322
|
*/
|
|
323
323
|
export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTime(state, cacheItem, timeObj) {
|
|
324
|
-
var _state$service$value, _cacheItem$_extend2;
|
|
324
|
+
var _state$service$value, _cacheItem$duration, _cacheItem$_extend2;
|
|
325
325
|
// 自定义商品不需要时间相关处理,直接返回基础扩展参数
|
|
326
326
|
if (cacheItem !== null && cacheItem !== void 0 && cacheItem.isCustomItem) {
|
|
327
327
|
return {
|
|
@@ -332,20 +332,13 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
|
|
|
332
332
|
|
|
333
333
|
// 获取上一个服务商品(过滤掉自定义商品)
|
|
334
334
|
var lastServer = getLastServer((_state$service$value = state.service.value) === null || _state$service$value === void 0 ? void 0 : _state$service$value.filter(function (item) {
|
|
335
|
-
return !item.isCustomItem;
|
|
335
|
+
return !item.isCustomItem && !isNormalProductByDurationSchedule(item);
|
|
336
336
|
}));
|
|
337
|
-
var getDuration = function getDuration(cacheItem) {
|
|
338
|
-
var _cacheItem$duration;
|
|
339
|
-
if (isMultiDayProduct(cacheItem)) {
|
|
340
|
-
return getDays(cacheItem, 'days');
|
|
341
|
-
}
|
|
342
|
-
return findNextDuration(cacheItem.duration, timeObj === null || timeObj === void 0 ? void 0 : timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value);
|
|
343
|
-
};
|
|
344
337
|
|
|
345
338
|
// 下一个商品的扩展参数
|
|
346
339
|
var _extend = {
|
|
347
340
|
// 时长: 当前商品时长 > 第一个时长
|
|
348
|
-
duration:
|
|
341
|
+
duration: findNextDuration(cacheItem.duration, timeObj === null || timeObj === void 0 ? void 0 : timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value)
|
|
349
342
|
};
|
|
350
343
|
|
|
351
344
|
// 如果有上一个商品, 将上一个商品的某些参数 设置到新商品上
|
|
@@ -362,8 +355,7 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
|
|
|
362
355
|
var _timeObj$timeSlices;
|
|
363
356
|
_extend.start_time = timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices[(timeObj === null || timeObj === void 0 || (_timeObj$timeSlices = timeObj.timeSlices) === null || _timeObj$timeSlices === void 0 ? void 0 : _timeObj$timeSlices.length) - 1].value;
|
|
364
357
|
} else {
|
|
365
|
-
|
|
366
|
-
_extend.start_time = (_ref2 = lastServerEndDate || dayjs()) === null || _ref2 === void 0 ? void 0 : _ref2.format("HH:mm");
|
|
358
|
+
_extend.start_time = lastServerEndDate.format("HH:mm");
|
|
367
359
|
}
|
|
368
360
|
}
|
|
369
361
|
} else {
|
|
@@ -399,20 +391,23 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
|
|
|
399
391
|
_extend = _objectSpread(_objectSpread({}, _extend), cacheItem._extend);
|
|
400
392
|
|
|
401
393
|
// 计算服务的开始和结束时间
|
|
402
|
-
var _getServiceTimes2 = getServiceTimes(
|
|
394
|
+
var _getServiceTimes2 = getServiceTimes({
|
|
403
395
|
_extend: _extend
|
|
404
|
-
})
|
|
396
|
+
}),
|
|
405
397
|
startDate = _getServiceTimes2.startDate,
|
|
406
398
|
endDate = _getServiceTimes2.endDate;
|
|
407
399
|
_extend.startDate = startDate;
|
|
408
400
|
_extend.endDate = endDate;
|
|
409
401
|
var session = cacheItem === null || cacheItem === void 0 || (_cacheItem$_extend2 = cacheItem._extend) === null || _cacheItem$_extend2 === void 0 || (_cacheItem$_extend2 = _cacheItem$_extend2.other) === null || _cacheItem$_extend2 === void 0 ? void 0 : _cacheItem$_extend2.session;
|
|
410
402
|
if (isSessionProduct(cacheItem) && session) {
|
|
411
|
-
|
|
412
|
-
|
|
403
|
+
var startAt = dayjs("".concat(state.date.value.format('YYYY-MM-DD'), " ").concat(session.start_at.format('HH:mm:ss')));
|
|
404
|
+
var endAt = dayjs("".concat(state.date.value.format('YYYY-MM-DD'), " ").concat(session.end_at.format('HH:mm:ss')));
|
|
405
|
+
_extend.start_date = startAt;
|
|
406
|
+
_extend.startDate = startAt;
|
|
413
407
|
_extend.start_time = session.start_time;
|
|
414
|
-
_extend.end_date =
|
|
415
|
-
_extend.endDate =
|
|
408
|
+
_extend.end_date = endAt;
|
|
409
|
+
_extend.endDate = endAt;
|
|
410
|
+
_extend.end_time = session.end_time;
|
|
416
411
|
_extend.duration = getDays({
|
|
417
412
|
_extend: _extend
|
|
418
413
|
}, 'minutes');
|
|
@@ -44,9 +44,6 @@ declare const _default: {
|
|
|
44
44
|
'pisell2.text.order-notes': string;
|
|
45
45
|
'pisell2.text.add-order-notes': string;
|
|
46
46
|
'pisell2.text.add-internal-notes': string;
|
|
47
|
-
'pisell2.text.holder-unassigned': (count: number) => string;
|
|
48
|
-
'pisell2.text.press-card-assign-holder': string;
|
|
49
|
-
'pisell2.text.skip-for-now': string;
|
|
50
47
|
'pisell2.text.add-notes': string;
|
|
51
48
|
'pisell2.text.notes': string;
|
|
52
49
|
'pisell2.text.new-appointment': string;
|
|
@@ -201,7 +198,6 @@ declare const _default: {
|
|
|
201
198
|
'page.booking.text.refund': string;
|
|
202
199
|
'page.booking.text.confirm': string;
|
|
203
200
|
'page.booking.text.go-back': string;
|
|
204
|
-
'page.booking.text.undo': string;
|
|
205
201
|
'page.booking.text.cancel-booking': string;
|
|
206
202
|
'page.booking.text.cancel-booking.msg': string;
|
|
207
203
|
'page.booking.text.disabled-tickets': string;
|
|
@@ -211,7 +207,6 @@ declare const _default: {
|
|
|
211
207
|
'page.booking.text.please-choose-an-option-2': string;
|
|
212
208
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
213
209
|
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
214
|
-
'page.booking.text.holder.length-error': string;
|
|
215
210
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
216
211
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
217
212
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -233,8 +228,6 @@ declare const _default: {
|
|
|
233
228
|
'pisell2.booking.info.text.clear': string;
|
|
234
229
|
'pisell2.booking.info.text.clear-cart': string;
|
|
235
230
|
'pisell2.booking.info.text.clear-all': string;
|
|
236
|
-
'pisell2.booking.info.text.add-holder': string;
|
|
237
|
-
'pisell2.booking.info.text.select-holder-title': string;
|
|
238
231
|
'pisell2.booking.info.text.create-new': string;
|
|
239
232
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
240
233
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
@@ -250,7 +243,6 @@ declare const _default: {
|
|
|
250
243
|
'pisell2.text.missing.reservation.content': string;
|
|
251
244
|
'pisell2.text.confirm': string;
|
|
252
245
|
'pisell2.text.cancel': string;
|
|
253
|
-
'pisell2.text.close-confirm-message': string;
|
|
254
246
|
'pisell2.action-buttons.clear': string;
|
|
255
247
|
'pisell2.action-buttons.manuel-order': string;
|
|
256
248
|
'pisell2.action-buttons.customise-item': string;
|
|
@@ -312,8 +304,6 @@ declare const _default: {
|
|
|
312
304
|
'pisell2.text.form.link.to.another.record.more': string;
|
|
313
305
|
'pisell2.booking.text.contact-info.title': string;
|
|
314
306
|
'pisell2.booking.text.search-placeholder': string;
|
|
315
|
-
'pisell-select-holder-please-select': string;
|
|
316
|
-
'pisell-select-holder-selected': string;
|
|
317
307
|
};
|
|
318
308
|
'zh-CN': {
|
|
319
309
|
'pisell2.text.refunded-amount': string;
|
|
@@ -365,9 +355,6 @@ declare const _default: {
|
|
|
365
355
|
'pisell2.text.order-notes': string;
|
|
366
356
|
'pisell2.text.add-order-notes': string;
|
|
367
357
|
'pisell2.text.add-internal-notes': string;
|
|
368
|
-
'pisell2.text.holder-unassigned': (count: number) => string;
|
|
369
|
-
'pisell2.text.press-card-assign-holder': string;
|
|
370
|
-
'pisell2.text.skip-for-now': string;
|
|
371
358
|
'pisell2.text.add-notes': string;
|
|
372
359
|
'pisell2.text.notes': string;
|
|
373
360
|
'pisell2.text.new-appointment': string;
|
|
@@ -517,7 +504,6 @@ declare const _default: {
|
|
|
517
504
|
'page.booking.text.refund': string;
|
|
518
505
|
'page.booking.text.confirm': string;
|
|
519
506
|
'page.booking.text.go-back': string;
|
|
520
|
-
'page.booking.text.undo': string;
|
|
521
507
|
'page.booking.text.cancel-booking': string;
|
|
522
508
|
'page.booking.text.cancel-booking.msg': string;
|
|
523
509
|
'page.booking.text.disabled-tickets': string;
|
|
@@ -527,7 +513,6 @@ declare const _default: {
|
|
|
527
513
|
'page.booking.text.please-choose-an-option-2': string;
|
|
528
514
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
529
515
|
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
530
|
-
'page.booking.text.holder.length-error': string;
|
|
531
516
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
532
517
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
533
518
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -549,8 +534,6 @@ declare const _default: {
|
|
|
549
534
|
'pisell2.booking.info.text.clear': string;
|
|
550
535
|
'pisell2.booking.info.text.clear-cart': string;
|
|
551
536
|
'pisell2.booking.info.text.clear-all': string;
|
|
552
|
-
'pisell2.booking.info.text.add-holder': string;
|
|
553
|
-
'pisell2.booking.info.text.select-holder-title': string;
|
|
554
537
|
'pisell2.booking.info.text.create-new': string;
|
|
555
538
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
556
539
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
@@ -566,7 +549,6 @@ declare const _default: {
|
|
|
566
549
|
'pisell2.text.missing.reservation.content': string;
|
|
567
550
|
'pisell2.text.confirm': string;
|
|
568
551
|
'pisell2.text.cancel': string;
|
|
569
|
-
'pisell2.text.close-confirm-message': string;
|
|
570
552
|
'pisell2.action-buttons.clear': string;
|
|
571
553
|
'pisell2.action-buttons.manuel-order': string;
|
|
572
554
|
'pisell2.action-buttons.customise-item': string;
|
|
@@ -628,8 +610,6 @@ declare const _default: {
|
|
|
628
610
|
'pisell2.text.form.link.to.another.record.more': string;
|
|
629
611
|
'pisell2.booking.text.contact-info.title': string;
|
|
630
612
|
'pisell2.booking.text.search-placeholder': string;
|
|
631
|
-
'pisell-select-holder-please-select': string;
|
|
632
|
-
'pisell-select-holder-selected': string;
|
|
633
613
|
};
|
|
634
614
|
'zh-HK': {
|
|
635
615
|
'pisell2.text.refunded-amount': string;
|
|
@@ -681,9 +661,6 @@ declare const _default: {
|
|
|
681
661
|
'pisell2.text.order-notes': string;
|
|
682
662
|
'pisell2.text.add-order-notes': string;
|
|
683
663
|
'pisell2.text.add-internal-notes': string;
|
|
684
|
-
'pisell2.text.holder-unassigned': (count: number) => string;
|
|
685
|
-
'pisell2.text.press-card-assign-holder': string;
|
|
686
|
-
'pisell2.text.skip-for-now': string;
|
|
687
664
|
'pisell2.text.add-notes': string;
|
|
688
665
|
'pisell2.text.notes': string;
|
|
689
666
|
'pisell2.text.new-appointment': string;
|
|
@@ -833,7 +810,6 @@ declare const _default: {
|
|
|
833
810
|
'page.booking.text.refund': string;
|
|
834
811
|
'page.booking.text.confirm': string;
|
|
835
812
|
'page.booking.text.go-back': string;
|
|
836
|
-
'page.booking.text.undo': string;
|
|
837
813
|
'page.booking.text.cancel-booking': string;
|
|
838
814
|
'page.booking.text.cancel-booking.msg': string;
|
|
839
815
|
'page.booking.text.disabled-tickets': string;
|
|
@@ -843,7 +819,6 @@ declare const _default: {
|
|
|
843
819
|
'page.booking.text.please-choose-an-option-2': string;
|
|
844
820
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
845
821
|
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
846
|
-
'page.booking.text.holder.length-error': string;
|
|
847
822
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
848
823
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
849
824
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -865,8 +840,6 @@ declare const _default: {
|
|
|
865
840
|
'pisell2.booking.info.text.clear': string;
|
|
866
841
|
'pisell2.booking.info.text.clear-cart': string;
|
|
867
842
|
'pisell2.booking.info.text.clear-all': string;
|
|
868
|
-
'pisell2.booking.info.text.add-holder': string;
|
|
869
|
-
'pisell2.booking.info.text.select-holder-title': string;
|
|
870
843
|
'pisell2.booking.info.text.create-new': string;
|
|
871
844
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
872
845
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
@@ -882,7 +855,6 @@ declare const _default: {
|
|
|
882
855
|
'pisell2.text.missing.reservation.content': string;
|
|
883
856
|
'pisell2.text.confirm': string;
|
|
884
857
|
'pisell2.text.cancel': string;
|
|
885
|
-
'pisell2.text.close-confirm-message': string;
|
|
886
858
|
'pisell2.action-buttons.clear': string;
|
|
887
859
|
'pisell2.action-buttons.manuel-order': string;
|
|
888
860
|
'pisell2.action-buttons.customise-item': string;
|
|
@@ -944,8 +916,6 @@ declare const _default: {
|
|
|
944
916
|
'pisell2.text.form.link.to.another.record.more': string;
|
|
945
917
|
'pisell2.booking.text.contact-info.title': string;
|
|
946
918
|
'pisell2.booking.text.search-placeholder': string;
|
|
947
|
-
'pisell-select-holder-please-select': string;
|
|
948
|
-
'pisell-select-holder-selected': string;
|
|
949
919
|
};
|
|
950
920
|
};
|
|
951
921
|
export default _default;
|
|
@@ -45,11 +45,6 @@ export default {
|
|
|
45
45
|
'pisell2.text.order-notes': 'Order notes',
|
|
46
46
|
'pisell2.text.add-order-notes': 'Add Order Note',
|
|
47
47
|
'pisell2.text.add-internal-notes': 'Add Internal note',
|
|
48
|
-
'pisell2.text.holder-unassigned': function pisell2TextHolderUnassigned(count) {
|
|
49
|
-
return "".concat(count, " Holder(s) Unassigned");
|
|
50
|
-
},
|
|
51
|
-
'pisell2.text.press-card-assign-holder': 'Please Press Each Card to Assign Holder',
|
|
52
|
-
'pisell2.text.skip-for-now': 'Skip for Now',
|
|
53
48
|
'pisell2.text.add-notes': 'Add Notes',
|
|
54
49
|
'pisell2.text.notes': 'Notes',
|
|
55
50
|
'pisell2.text.new-appointment': 'New appointment',
|
|
@@ -234,7 +229,6 @@ export default {
|
|
|
234
229
|
'page.booking.text.refund': 'Refund',
|
|
235
230
|
'page.booking.text.confirm': 'Confirm',
|
|
236
231
|
'page.booking.text.go-back': 'Go back',
|
|
237
|
-
'page.booking.text.undo': 'Undo',
|
|
238
232
|
'page.booking.text.cancel-booking': "Cancel Booking",
|
|
239
233
|
'page.booking.text.cancel-booking.msg': "The action is irreversible. Please proceed with caution. ",
|
|
240
234
|
'page.booking.text.disabled-tickets': "All tickets will be disabled.",
|
|
@@ -248,7 +242,6 @@ export default {
|
|
|
248
242
|
return "Select at least ".concat(x, " ").concat(y);
|
|
249
243
|
},
|
|
250
244
|
'page.booking.text.resource.check-auto-allocation-tip': "When checked, content will be automatically filled in without manual selection",
|
|
251
|
-
'page.booking.text.holder.length-error': 'Please select enough holder(s)',
|
|
252
245
|
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
253
246
|
return "Original price of the item:".concat(origin, ",Current price of the item:").concat(current);
|
|
254
247
|
},
|
|
@@ -272,8 +265,6 @@ export default {
|
|
|
272
265
|
'pisell2.booking.info.text.clear': "Clear",
|
|
273
266
|
'pisell2.booking.info.text.clear-cart': "Clear cart",
|
|
274
267
|
'pisell2.booking.info.text.clear-all': "Clear all",
|
|
275
|
-
'pisell2.booking.info.text.add-holder': "Select",
|
|
276
|
-
'pisell2.booking.info.text.select-holder-title': "Who would you like to book this event for?",
|
|
277
268
|
'pisell2.booking.info.text.create-new': "Create new",
|
|
278
269
|
'pisell2.booking.info.text.form-agreement-yes': "Yes",
|
|
279
270
|
'pisell2.booking.info.text.form-agreement-no': "No",
|
|
@@ -291,7 +282,6 @@ export default {
|
|
|
291
282
|
'pisell2.text.missing.reservation.content': 'You have not selected a reservation type, Please select one before proceeding.',
|
|
292
283
|
'pisell2.text.confirm': 'Confirm',
|
|
293
284
|
'pisell2.text.cancel': 'Cancel',
|
|
294
|
-
'pisell2.text.close-confirm-message': 'Closing will discard all changes. Are you sure you want to close?',
|
|
295
285
|
// Action Buttons
|
|
296
286
|
'pisell2.action-buttons.clear': 'Clear',
|
|
297
287
|
'pisell2.action-buttons.manuel-order': "Manual\nOrder\xA0$",
|
|
@@ -367,9 +357,7 @@ export default {
|
|
|
367
357
|
'pisell2.text.form.link.to.another.record.more': 'View More',
|
|
368
358
|
// 联系信息
|
|
369
359
|
'pisell2.booking.text.contact-info.title': 'Contact info',
|
|
370
|
-
'pisell2.booking.text.search-placeholder': 'Search Customers / Contacts'
|
|
371
|
-
'pisell-select-holder-please-select': 'Please Select',
|
|
372
|
-
'pisell-select-holder-selected': 'Selected: '
|
|
360
|
+
'pisell2.booking.text.search-placeholder': 'Search Customers / Contacts'
|
|
373
361
|
},
|
|
374
362
|
'zh-CN': {
|
|
375
363
|
'pisell2.text.refunded-amount': '已退金额',
|
|
@@ -421,11 +409,6 @@ export default {
|
|
|
421
409
|
'pisell2.text.order-notes': '订单备注',
|
|
422
410
|
'pisell2.text.add-order-notes': '添加订单备注',
|
|
423
411
|
'pisell2.text.add-internal-notes': '添加内部备注',
|
|
424
|
-
'pisell2.text.holder-unassigned': function pisell2TextHolderUnassigned(count) {
|
|
425
|
-
return "".concat(count, " \u4E2A\u9884\u7EA6\u4E3B\u4F53\u672A\u5206\u914D");
|
|
426
|
-
},
|
|
427
|
-
'pisell2.text.press-card-assign-holder': '请点击每个卡片来分配预约主体',
|
|
428
|
-
'pisell2.text.skip-for-now': '稍后处理',
|
|
429
412
|
'pisell2.text.add-notes': '添加备注',
|
|
430
413
|
'pisell2.text.notes': '备注',
|
|
431
414
|
'pisell2.text.new-appointment': '新预约',
|
|
@@ -610,7 +593,6 @@ export default {
|
|
|
610
593
|
'page.booking.text.refund': '退款',
|
|
611
594
|
'page.booking.text.confirm': '确认',
|
|
612
595
|
'page.booking.text.go-back': '返回',
|
|
613
|
-
'page.booking.text.undo': '撤销',
|
|
614
596
|
'page.booking.text.cancel-booking': "取消预约",
|
|
615
597
|
'page.booking.text.cancel-booking.msg': "该操作不可撤销,请谨慎操作。",
|
|
616
598
|
'page.booking.text.disabled-tickets': "所有票单将被禁用。",
|
|
@@ -624,7 +606,6 @@ export default {
|
|
|
624
606
|
return "\u81F3\u5C11\u9009\u62E9".concat(x, "\u9879").concat(y);
|
|
625
607
|
},
|
|
626
608
|
'page.booking.text.resource.check-auto-allocation-tip': "\u52FE\u9009\u540E\u5C06\u81EA\u52A8\u586B\u5165\u5185\u5BB9\uFF0C\u65E0\u9700\u624B\u52A8\u9009\u62E9",
|
|
627
|
-
'page.booking.text.holder.length-error': '请选择足够的持有者',
|
|
628
609
|
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
629
610
|
return "\u5546\u54C1\u539F\u4EF7:".concat(origin, ",\u5546\u54C1\u73B0\u4EF7:").concat(current);
|
|
630
611
|
},
|
|
@@ -648,8 +629,6 @@ export default {
|
|
|
648
629
|
'pisell2.booking.info.text.clear': "清空",
|
|
649
630
|
'pisell2.booking.info.text.clear-cart': "清空购物车",
|
|
650
631
|
'pisell2.booking.info.text.clear-all': "清空",
|
|
651
|
-
'pisell2.booking.info.text.add-holder': "请选择",
|
|
652
|
-
'pisell2.booking.info.text.select-holder-title': '您想为谁预订这个活动?',
|
|
653
632
|
'pisell2.booking.info.text.create-new': "新建",
|
|
654
633
|
'pisell2.booking.info.text.form-agreement-yes': "是",
|
|
655
634
|
'pisell2.booking.info.text.form-agreement-no': "否",
|
|
@@ -667,7 +646,6 @@ export default {
|
|
|
667
646
|
'pisell2.text.missing.reservation.content': '您尚未选择预约类型,请在继续操作前选择。',
|
|
668
647
|
'pisell2.text.confirm': '确定',
|
|
669
648
|
'pisell2.text.cancel': '取消',
|
|
670
|
-
'pisell2.text.close-confirm-message': '关闭后,已填写或操作的内容将不会保存,确定要关闭吗?',
|
|
671
649
|
// Action Buttons
|
|
672
650
|
'pisell2.action-buttons.clear': '清空',
|
|
673
651
|
'pisell2.action-buttons.manuel-order': "\u624B\u52A8\n\u8BA2\u5355\xA0$",
|
|
@@ -743,9 +721,7 @@ export default {
|
|
|
743
721
|
'pisell2.text.form.link.to.another.record.more': '查看更多',
|
|
744
722
|
// 联系信息
|
|
745
723
|
'pisell2.booking.text.contact-info.title': '联系信息',
|
|
746
|
-
'pisell2.booking.text.search-placeholder': '搜索客户/联系信息'
|
|
747
|
-
'pisell-select-holder-please-select': '请选择',
|
|
748
|
-
'pisell-select-holder-selected': '已选择:'
|
|
724
|
+
'pisell2.booking.text.search-placeholder': '搜索客户/联系信息'
|
|
749
725
|
},
|
|
750
726
|
'zh-HK': {
|
|
751
727
|
'pisell2.text.refunded-amount': '已退金額',
|
|
@@ -797,11 +773,6 @@ export default {
|
|
|
797
773
|
'pisell2.text.order-notes': '訂單備注',
|
|
798
774
|
'pisell2.text.add-order-notes': '添加訂單備注',
|
|
799
775
|
'pisell2.text.add-internal-notes': '添加內部備注',
|
|
800
|
-
'pisell2.text.holder-unassigned': function pisell2TextHolderUnassigned(count) {
|
|
801
|
-
return "".concat(count, " \u500B\u9810\u7D04\u4E3B\u9AD4\u672A\u5206\u914D");
|
|
802
|
-
},
|
|
803
|
-
'pisell2.text.press-card-assign-holder': '請點擊每個卡片來分配預約主體',
|
|
804
|
-
'pisell2.text.skip-for-now': '稍後處理',
|
|
805
776
|
'pisell2.text.add-notes': '添加備注',
|
|
806
777
|
'pisell2.text.notes': '備注',
|
|
807
778
|
'pisell2.text.new-appointment': '新預約',
|
|
@@ -986,7 +957,6 @@ export default {
|
|
|
986
957
|
'page.booking.text.refund': '退款',
|
|
987
958
|
'page.booking.text.confirm': '確認',
|
|
988
959
|
'page.booking.text.go-back': '返回',
|
|
989
|
-
'page.booking.text.undo': '撤销',
|
|
990
960
|
'page.booking.text.cancel-booking': '取消預約',
|
|
991
961
|
'page.booking.text.cancel-booking.msg': '該操作不可撤銷,請謹慎操作。',
|
|
992
962
|
'page.booking.text.disabled-tickets': '所有票單將被禁用。',
|
|
@@ -1000,7 +970,6 @@ export default {
|
|
|
1000
970
|
return "\u81F3\u5C11\u9078\u64C7".concat(x, "\u9805").concat(y);
|
|
1001
971
|
},
|
|
1002
972
|
'page.booking.text.resource.check-auto-allocation-tip': "\u52FE\u9078\u5F8C\u5C07\u81EA\u52D5\u586B\u5165\u5167\u5BB9\uFF0C\u7121\u9700\u624B\u52D5\u9078\u64C7",
|
|
1003
|
-
'page.booking.text.holder.length-error': '請選擇足夠的持有者',
|
|
1004
973
|
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
1005
974
|
return "\u5546\u54C1\u539F\u50F9:".concat(origin, ",\u5546\u54C1\u73FE\u50F9:").concat(current);
|
|
1006
975
|
},
|
|
@@ -1024,8 +993,6 @@ export default {
|
|
|
1024
993
|
'pisell2.booking.info.text.clear': "清空",
|
|
1025
994
|
'pisell2.booking.info.text.clear-cart': "清空購物車",
|
|
1026
995
|
'pisell2.booking.info.text.clear-all': "清空",
|
|
1027
|
-
'pisell2.booking.info.text.add-holder': "请选择",
|
|
1028
|
-
'pisell2.booking.info.text.select-holder-title': "您想为谁预订这个活动?",
|
|
1029
996
|
'pisell2.booking.info.text.create-new': "新建",
|
|
1030
997
|
'pisell2.booking.info.text.form-agreement-yes': "是",
|
|
1031
998
|
'pisell2.booking.info.text.form-agreement-no': "否",
|
|
@@ -1043,7 +1010,6 @@ export default {
|
|
|
1043
1010
|
'pisell2.text.missing.reservation.content': '您尚未選擇預約類型,請在繼續操作前選擇。',
|
|
1044
1011
|
'pisell2.text.confirm': '確定',
|
|
1045
1012
|
'pisell2.text.cancel': '取消',
|
|
1046
|
-
'pisell2.text.close-confirm-message': '關閉後,已填寫或操作的內容將不會保存,確定要關閉嗎?',
|
|
1047
1013
|
// Action Buttons
|
|
1048
1014
|
'pisell2.action-buttons.clear': '清空',
|
|
1049
1015
|
'pisell2.action-buttons.manuel-order': "\u624B\u52D5\n\u8A02\u55AE\xA0$",
|
|
@@ -1119,8 +1085,6 @@ export default {
|
|
|
1119
1085
|
'pisell2.text.form.link.to.another.record.more': '查看更多',
|
|
1120
1086
|
// 联系信息
|
|
1121
1087
|
'pisell2.booking.text.contact-info.title': '聯繫信息',
|
|
1122
|
-
'pisell2.booking.text.search-placeholder': '搜索客戶/聯系信息'
|
|
1123
|
-
'pisell-select-holder-please-select': '請選擇',
|
|
1124
|
-
'pisell-select-holder-selected': '已選擇:'
|
|
1088
|
+
'pisell2.booking.text.search-placeholder': '搜索客戶/聯系信息'
|
|
1125
1089
|
}
|
|
1126
1090
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
+
/**
|
|
3
|
+
* @title: 高阶函数结果缓存(Memoization)
|
|
4
|
+
*/
|
|
5
|
+
export declare function memoize<T extends (...args: any[]) => any>(fn: T): T;
|
|
2
6
|
declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
|
|
3
7
|
declare class Request {
|
|
4
8
|
private request;
|
|
@@ -23,21 +27,8 @@ export declare const request: Request;
|
|
|
23
27
|
*/
|
|
24
28
|
export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
|
|
25
29
|
/**
|
|
26
|
-
* @title:
|
|
27
|
-
* @description:
|
|
28
|
-
* @param {number} days
|
|
29
|
-
* @param {number} minutes
|
|
30
|
-
* @return {*}
|
|
31
|
-
*/
|
|
32
|
-
export declare const getDiscountTimeByDayMinutes: (days: number, minutes: number) => string;
|
|
33
|
-
/**
|
|
34
|
-
* @title: 时间切片
|
|
35
|
-
* @description:
|
|
36
|
-
* @param {any} config
|
|
37
|
-
* @param {string} locale
|
|
38
|
-
* @return {*}
|
|
39
|
-
* @Author: zhiwei.Wang
|
|
40
|
-
* @Date: 2024-04-26 13:59
|
|
30
|
+
* @title: 时间切片(带缓存版本)
|
|
31
|
+
* @description: 使用 memoize 高阶函数包裹 sliceDayIntoFiveMinutes,相同参数时直接返回缓存结果
|
|
41
32
|
*/
|
|
42
33
|
export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
|
|
43
34
|
timeSlices: {
|
|
@@ -121,7 +112,7 @@ export declare const flexibleObj: {
|
|
|
121
112
|
export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
|
|
122
113
|
export declare const getServiceTimes: (service: any) => {
|
|
123
114
|
startDate: dayjs.Dayjs;
|
|
124
|
-
endDate:
|
|
115
|
+
endDate: dayjs.Dayjs;
|
|
125
116
|
};
|
|
126
117
|
export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
|
|
127
118
|
label: any;
|
|
@@ -19,7 +19,31 @@ import { isDayBooking, formatDayDate } from "./info/service2/utils";
|
|
|
19
19
|
import { intersectionBy } from 'lodash';
|
|
20
20
|
import { getAppointmentTimingPreference } from "./info2/utilsByBooking";
|
|
21
21
|
import Decimal from 'decimal.js';
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @title: 高阶函数结果缓存(Memoization)
|
|
25
|
+
*/
|
|
26
|
+
export function memoize(fn) {
|
|
27
|
+
// 使用 Map 存储缓存,支持任意类型的 key
|
|
28
|
+
var cache = new Map();
|
|
29
|
+
return function () {
|
|
30
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
31
|
+
args[_key] = arguments[_key];
|
|
32
|
+
}
|
|
33
|
+
// 将参数序列化为字符串作为缓存的 key
|
|
34
|
+
var key = JSON.stringify(args);
|
|
35
|
+
|
|
36
|
+
// 如果缓存中存在该 key,直接返回缓存的结果
|
|
37
|
+
if (cache.has(key)) {
|
|
38
|
+
return cache.get(key);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// 否则执行函数并缓存结果
|
|
42
|
+
var result = fn.apply(this, args);
|
|
43
|
+
cache.set(key, result);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
23
47
|
var Request = /*#__PURE__*/function () {
|
|
24
48
|
function Request() {
|
|
25
49
|
_classCallCheck(this, Request);
|
|
@@ -71,20 +95,6 @@ export var getDiscountTime = function getDiscountTime(service_times, isDay) {
|
|
|
71
95
|
}
|
|
72
96
|
};
|
|
73
97
|
|
|
74
|
-
/**
|
|
75
|
-
* @title: 格式化跨日预约的时长用于展示
|
|
76
|
-
* @description:
|
|
77
|
-
* @param {number} days
|
|
78
|
-
* @param {number} minutes
|
|
79
|
-
* @return {*}
|
|
80
|
-
*/
|
|
81
|
-
export var getDiscountTimeByDayMinutes = function getDiscountTimeByDayMinutes(days, minutes) {
|
|
82
|
-
if (days === 0) {
|
|
83
|
-
return getDiscountTime(minutes);
|
|
84
|
-
}
|
|
85
|
-
return "".concat(days, " ").concat(locales.getText('pisell2.text.day')(days), " ").concat(getDiscountTime(minutes));
|
|
86
|
-
};
|
|
87
|
-
|
|
88
98
|
/**
|
|
89
99
|
* @title: 时间切片
|
|
90
100
|
* @description:
|
|
@@ -94,7 +104,7 @@ export var getDiscountTimeByDayMinutes = function getDiscountTimeByDayMinutes(da
|
|
|
94
104
|
* @Author: zhiwei.Wang
|
|
95
105
|
* @Date: 2024-04-26 13:59
|
|
96
106
|
*/
|
|
97
|
-
|
|
107
|
+
var _sliceDayIntoFiveMinutes = function _sliceDayIntoFiveMinutes(config, locale, isDay) {
|
|
98
108
|
var _locale = locale;
|
|
99
109
|
var dayjsLocale = _locale === 'en-US' || _locale === 'en' ? 'en' : 'zh-cn';
|
|
100
110
|
dayjs.locale(dayjsLocale);
|
|
@@ -157,6 +167,12 @@ export var sliceDayIntoFiveMinutes = function sliceDayIntoFiveMinutes(config, lo
|
|
|
157
167
|
};
|
|
158
168
|
};
|
|
159
169
|
|
|
170
|
+
/**
|
|
171
|
+
* @title: 时间切片(带缓存版本)
|
|
172
|
+
* @description: 使用 memoize 高阶函数包裹 sliceDayIntoFiveMinutes,相同参数时直接返回缓存结果
|
|
173
|
+
*/
|
|
174
|
+
export var sliceDayIntoFiveMinutes = memoize(_sliceDayIntoFiveMinutes);
|
|
175
|
+
|
|
160
176
|
// 获取当前时间
|
|
161
177
|
export var getNowTime = function getNowTime() {
|
|
162
178
|
return dayjs().format('HH:mm');
|
|
@@ -219,12 +235,15 @@ export var findNextSlice = function findNextSlice(_ref) {
|
|
|
219
235
|
return timeSlices[index].value;
|
|
220
236
|
};
|
|
221
237
|
export var findNextDuration = function findNextDuration(current, array, defaultValue) {
|
|
238
|
+
if (defaultValue) {
|
|
239
|
+
return defaultValue;
|
|
240
|
+
}
|
|
222
241
|
for (var i = 0; i < array.length; i++) {
|
|
223
242
|
if (array[i].value == (current === null || current === void 0 ? void 0 : current.value)) {
|
|
224
243
|
return array[i].value;
|
|
225
244
|
}
|
|
226
245
|
}
|
|
227
|
-
return
|
|
246
|
+
return array[0].value;
|
|
228
247
|
};
|
|
229
248
|
export var formatProductListByCategory = function formatProductListByCategory(list, filterItem) {
|
|
230
249
|
var _list = list || [];
|
|
@@ -505,14 +524,6 @@ export var getEndDate = function getEndDate(startDate, duration, endDate) {
|
|
|
505
524
|
export var getServiceTimes = function getServiceTimes(service) {
|
|
506
525
|
var _service$_extend;
|
|
507
526
|
var startDate = dayjs(dayjs(service._extend.start_date).format('YYYY-MM-DD ') + getServeStartTime(service._extend.start_time));
|
|
508
|
-
|
|
509
|
-
// 跨日预约
|
|
510
|
-
if (isMultiDayProduct(service)) {
|
|
511
|
-
return {
|
|
512
|
-
startDate: startDate,
|
|
513
|
-
endDate: service._extend.end_date
|
|
514
|
-
};
|
|
515
|
-
}
|
|
516
527
|
var endDate = startDate.add(flexibleObj.getValue(service._extend.duration), 'minute');
|
|
517
528
|
var session = service === null || service === void 0 || (_service$_extend = service._extend) === null || _service$_extend === void 0 || (_service$_extend = _service$_extend.other) === null || _service$_extend === void 0 ? void 0 : _service$_extend.session;
|
|
518
529
|
if (isSessionProduct(service) && session) {
|
|
@@ -623,7 +634,7 @@ export var formatResource = function formatResource(resourceItem, cacheItem, for
|
|
|
623
634
|
|
|
624
635
|
// 获取最后一个服务商品
|
|
625
636
|
export var getLastServer = function getLastServer(list) {
|
|
626
|
-
return list
|
|
637
|
+
return list === null || list === void 0 ? void 0 : list[0];
|
|
627
638
|
};
|
|
628
639
|
export var getCacheParams = function getCacheParams() {
|
|
629
640
|
// 从缓存里读默认参数, 如果有 则需要默认选中某些参数, 添加完商品后则删除
|