@pisell/private-materials 6.6.25 → 6.6.26
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/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/utils.d.ts +63 -0
- package/es/components/Sales/Summary/utils.d.ts +51 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.js +22 -7
- package/es/components/appointmentBooking/locales.d.ts +363 -0
- package/es/components/booking/addons/index.js +3 -2
- package/es/components/booking/components/footer/amount.js +1 -1
- package/es/components/booking/components/footer/index.js +7 -0
- package/es/components/booking/components/footer/utils.d.ts +1 -1
- package/es/components/booking/components/footer/utils.js +7 -5
- package/es/components/booking/components/voucher/index.js +6 -0
- package/es/components/booking/components/voucher/index.less +4 -1
- package/es/components/booking/components/voucherModal/index.less +1 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/serve.d.ts +18 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/serve.d.ts +34 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/es/components/booking/info2/cartClientCard/types.d.ts +18 -0
- package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/info2/service/editService/index.js +33 -2
- package/es/components/booking/locales.d.ts +951 -0
- package/es/components/checkout/PaymentModal.js +42 -2
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +36 -0
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
- package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/es/components/checkout/components/ScrollableList/types.d.ts +53 -0
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/index.js +1 -0
- package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/es/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/utils.js +17 -3
- package/es/components/checkout/constants.d.ts +2 -0
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/es/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/es/components/checkout/hooks/useWalletPass.js +322 -194
- package/es/components/checkout/locales.d.ts +513 -0
- package/es/components/checkout/styles.d.ts +67 -0
- package/es/components/checkout/types.d.ts +130 -0
- package/es/components/checkout/utils.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.js +1 -1
- package/es/components/eftposPay/const.d.ts +195 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/es/components/eftposPay/huifu/types.d.ts +14 -0
- package/es/components/eftposPay/locales.d.ts +366 -0
- package/es/components/eftposPay/manufacturer.d.ts +8 -0
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/store/index.d.ts +362 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/es/components/list/components/Tab/Tab.d.ts +5 -0
- package/es/components/list/components/Tab/index.d.ts +2 -0
- package/es/components/list/components/Tab/types.d.ts +14 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/es/components/list/components/WaterfallList/index.d.ts +2 -0
- package/es/components/list/hooks/index.d.ts +5 -0
- package/es/components/list/hooks/useDevice.d.ts +24 -0
- package/es/components/list/hooks/useListState.d.ts +43 -0
- package/es/components/list/hooks/useWaterfall.d.ts +34 -0
- package/es/components/list/locales.d.ts +66 -0
- package/es/components/list/types.d.ts +177 -0
- package/es/components/list/utils/getText.d.ts +53 -0
- package/es/components/list/utils/index.d.ts +4 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/es/components/pay/toB/hooks.d.ts +12 -0
- package/es/components/pay/toB/locales.d.ts +54 -0
- package/es/components/pay/toB/store/context.d.ts +3 -0
- package/es/components/pay/toB/store/index.d.ts +3 -0
- package/es/components/pay/toB/store/provider.d.ts +4 -0
- package/es/components/pay/toB/types/index.d.ts +61 -0
- package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/es/components/pay/toC/index.js +66 -27
- package/es/components/pay/toC/locales.d.ts +307 -0
- package/es/components/pay/toC/model.d.ts +1 -0
- package/es/components/pay/toC/serve.d.ts +18 -0
- package/es/components/pay/toC/serve.js +29 -1
- package/es/components/pay/toC/status.d.ts +13 -0
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +4 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/ruleSetting/locales.d.ts +48 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/locales.d.ts +36 -0
- package/es/components/shoppingCart/type.d.ts +50 -0
- package/es/components/subTotal/locales.d.ts +42 -0
- package/es/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image.png +0 -0
- package/es/components/systemSettings/registry/locales.d.ts +272 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/types.d.ts +126 -0
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -4
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/es/components/ticketBooking/context/index.d.ts +2 -0
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
- package/es/components/ticketBooking/locales.d.ts +198 -0
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/es/components/wallet/utils.d.ts +48 -0
- package/es/components/walletList/locales.d.ts +27 -0
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/hooks/useEngineContext.d.ts +3 -0
- package/es/hooks/useLogger.d.ts +2 -0
- package/es/hooks/useToast.d.ts +2 -0
- package/es/hooks/useTranslationOriginal.d.ts +1 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/clientCard/locales.d.ts +18 -0
- package/es/plus/clientCard/types.d.ts +134 -0
- package/es/plus/clientCard/utils.d.ts +8 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/es/plus/clinetSearch/locales.d.ts +108 -0
- package/es/plus/clinetSearch/types.d.ts +70 -0
- package/es/plus/noteModal/locales.d.ts +33 -0
- package/es/plus/noteModal/types.d.ts +19 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -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 +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/selectHolder/locales.d.ts +24 -0
- package/es/plus/selectHolder/types.d.ts +104 -0
- package/es/plus/selectHolder/utils.d.ts +9 -0
- package/es/plus/walletEditor/locales.d.ts +135 -0
- package/es/plus/walletPassGallery/locales.d.ts +285 -0
- package/es/plus/walletPassGallery/utils.d.ts +48 -0
- package/es/pro/Login2.0/shared/types.d.ts +232 -0
- package/es/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +15 -0
- package/es/pro/comprehensiveSearch/types.d.ts +32 -0
- package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/es/pro/skuDetailModal/locales.d.ts +48 -0
- package/es/pro/skuDetailModal/types.d.ts +348 -0
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/utils.d.ts +63 -0
- package/lib/components/Sales/Summary/utils.d.ts +51 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.js +10 -2
- package/lib/components/appointmentBooking/locales.d.ts +363 -0
- package/lib/components/booking/addons/index.js +3 -2
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/index.js +9 -0
- package/lib/components/booking/components/footer/utils.d.ts +1 -1
- package/lib/components/booking/components/footer/utils.js +5 -3
- package/lib/components/booking/components/voucher/index.js +6 -0
- package/lib/components/booking/components/voucher/index.less +4 -1
- package/lib/components/booking/components/voucherModal/index.less +1 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/serve.d.ts +18 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/serve.d.ts +34 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/lib/components/booking/info2/cartClientCard/types.d.ts +18 -0
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/info2/service/editService/index.js +48 -24
- package/lib/components/booking/locales.d.ts +951 -0
- package/lib/components/checkout/PaymentModal.js +24 -1
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +36 -0
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
- package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/lib/components/checkout/components/ScrollableList/types.d.ts +53 -0
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/lib/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/utils.js +18 -2
- package/lib/components/checkout/constants.d.ts +2 -0
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/lib/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/lib/components/checkout/hooks/useWalletPass.js +160 -107
- package/lib/components/checkout/locales.d.ts +513 -0
- package/lib/components/checkout/styles.d.ts +67 -0
- package/lib/components/checkout/types.d.ts +130 -0
- package/lib/components/checkout/utils.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.js +1 -1
- package/lib/components/eftposPay/const.d.ts +195 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/lib/components/eftposPay/huifu/types.d.ts +14 -0
- package/lib/components/eftposPay/locales.d.ts +366 -0
- package/lib/components/eftposPay/manufacturer.d.ts +8 -0
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/store/index.d.ts +362 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/lib/components/list/components/Tab/Tab.d.ts +5 -0
- package/lib/components/list/components/Tab/index.d.ts +2 -0
- package/lib/components/list/components/Tab/types.d.ts +14 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
- package/lib/components/list/hooks/index.d.ts +5 -0
- package/lib/components/list/hooks/useDevice.d.ts +24 -0
- package/lib/components/list/hooks/useListState.d.ts +43 -0
- package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
- package/lib/components/list/locales.d.ts +66 -0
- package/lib/components/list/types.d.ts +177 -0
- package/lib/components/list/utils/getText.d.ts +53 -0
- package/lib/components/list/utils/index.d.ts +4 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/lib/components/pay/toB/hooks.d.ts +12 -0
- package/lib/components/pay/toB/locales.d.ts +54 -0
- package/lib/components/pay/toB/store/context.d.ts +3 -0
- package/lib/components/pay/toB/store/index.d.ts +3 -0
- package/lib/components/pay/toB/store/provider.d.ts +4 -0
- package/lib/components/pay/toB/types/index.d.ts +61 -0
- package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/lib/components/pay/toC/index.js +52 -11
- package/lib/components/pay/toC/locales.d.ts +307 -0
- package/lib/components/pay/toC/model.d.ts +1 -0
- package/lib/components/pay/toC/serve.d.ts +18 -0
- package/lib/components/pay/toC/serve.js +6 -0
- package/lib/components/pay/toC/status.d.ts +13 -0
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +4 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/ruleSetting/locales.d.ts +48 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/locales.d.ts +36 -0
- package/lib/components/shoppingCart/type.d.ts +50 -0
- package/lib/components/subTotal/locales.d.ts +42 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image.png +0 -0
- package/lib/components/systemSettings/registry/locales.d.ts +272 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/types.d.ts +126 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +11 -7
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/index.d.ts +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
- package/lib/components/ticketBooking/locales.d.ts +198 -0
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/lib/components/wallet/utils.d.ts +48 -0
- package/lib/components/walletList/locales.d.ts +27 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/hooks/useEngineContext.d.ts +3 -0
- package/lib/hooks/useLogger.d.ts +2 -0
- package/lib/hooks/useToast.d.ts +2 -0
- package/lib/hooks/useTranslationOriginal.d.ts +1 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/clientCard/locales.d.ts +18 -0
- package/lib/plus/clientCard/types.d.ts +134 -0
- package/lib/plus/clientCard/utils.d.ts +8 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/lib/plus/clinetSearch/locales.d.ts +108 -0
- package/lib/plus/clinetSearch/types.d.ts +70 -0
- package/lib/plus/noteModal/locales.d.ts +33 -0
- package/lib/plus/noteModal/types.d.ts +19 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -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 +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/selectHolder/locales.d.ts +24 -0
- package/lib/plus/selectHolder/types.d.ts +104 -0
- package/lib/plus/selectHolder/utils.d.ts +9 -0
- package/lib/plus/walletEditor/locales.d.ts +135 -0
- package/lib/plus/walletPassGallery/locales.d.ts +285 -0
- package/lib/plus/walletPassGallery/utils.d.ts +48 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +15 -0
- package/lib/pro/comprehensiveSearch/types.d.ts +32 -0
- package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/lib/pro/skuDetailModal/locales.d.ts +48 -0
- package/lib/pro/skuDetailModal/types.d.ts +348 -0
- package/lowcode/eco-cup-list/meta.ts +63 -0
- package/lowcode/eco-customer-list/meta.ts +63 -0
- package/package.json +2 -2
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import Decimal from 'decimal.js';
|
|
2
|
+
import { ICalculatePriceParams } from './types';
|
|
3
|
+
export declare const handleProductInfo: (eventDetail: any, num: number) => {
|
|
4
|
+
totalPrice: number;
|
|
5
|
+
originTotal: any;
|
|
6
|
+
is_charge_tax: any;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* 获取商品总价
|
|
10
|
+
* @description 当前总价计算基于商品数量为1
|
|
11
|
+
* @param item 商品
|
|
12
|
+
* @returns 商品总价
|
|
13
|
+
*/
|
|
14
|
+
export declare const getTotalPrice: (params: ICalculatePriceParams) => number;
|
|
15
|
+
/**
|
|
16
|
+
* 获取商品原始总价
|
|
17
|
+
* @description 当前总价计算基于商品数量为1
|
|
18
|
+
* @param item 商品
|
|
19
|
+
* @returns 商品原始总价
|
|
20
|
+
*/
|
|
21
|
+
export declare const getOriginTotalPrice: (params: ICalculatePriceParams) => number | undefined;
|
|
22
|
+
export declare const handleCartItemOrigin: (cartItem: any, eventDetail: any) => any;
|
|
23
|
+
export declare const formatBundleToOrigin: (bundle: any) => any;
|
|
24
|
+
export declare const formatOptionsToOrigin: (options: any) => any;
|
|
25
|
+
export declare const handleProductDeposit: (cartItem: any, eventDetail: any, num: number) => {
|
|
26
|
+
total: number;
|
|
27
|
+
protocols: any;
|
|
28
|
+
} | null;
|
|
29
|
+
/**
|
|
30
|
+
* 获取商品定金
|
|
31
|
+
* @description 定金基于商品售价来算,最终乘商品数量
|
|
32
|
+
* 1、如果套餐主商品有定金规则,则定金为:(套餐商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
|
|
33
|
+
* 2、如果套餐主商品没有定金规则,子商品有定金规则,则定金为:(套餐子商品售价 * 套餐子商品定金百分比 + 套餐子商品定金固定金额)* 商品数量,最终将所有子商品定金相加
|
|
34
|
+
* 3、普通商品/单规格商品/组合规则商品,定金规则:(商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
|
|
35
|
+
* @param params 参数
|
|
36
|
+
* @returns 商品定金
|
|
37
|
+
*/
|
|
38
|
+
export declare const getProductDeposit: (params: {
|
|
39
|
+
cartItem: any;
|
|
40
|
+
product: any;
|
|
41
|
+
bundle?: any;
|
|
42
|
+
options?: any;
|
|
43
|
+
num?: number;
|
|
44
|
+
}) => {
|
|
45
|
+
total: number;
|
|
46
|
+
protocols: any;
|
|
47
|
+
} | null;
|
|
48
|
+
/**
|
|
49
|
+
* 计算商品定金
|
|
50
|
+
* @param params 参数
|
|
51
|
+
* @returns 商品定金
|
|
52
|
+
*/
|
|
53
|
+
export declare const calculateProductDeposit: (params: {
|
|
54
|
+
depositData: {
|
|
55
|
+
deposit_fixed?: string;
|
|
56
|
+
deposit_percentage?: string;
|
|
57
|
+
};
|
|
58
|
+
total: string | number;
|
|
59
|
+
num: number;
|
|
60
|
+
}) => {
|
|
61
|
+
result: boolean;
|
|
62
|
+
depositTotal: Decimal;
|
|
63
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import Decimal from 'decimal.js';
|
|
2
|
+
interface CartItem {
|
|
3
|
+
price: number | string;
|
|
4
|
+
quantity?: number;
|
|
5
|
+
[k: string]: any;
|
|
6
|
+
}
|
|
7
|
+
interface PriceDetail {
|
|
8
|
+
subtotal: string;
|
|
9
|
+
total: string;
|
|
10
|
+
taxTitle?: string;
|
|
11
|
+
totalTaxFee?: string;
|
|
12
|
+
isPriceIncludeTax?: 0 | 1;
|
|
13
|
+
deposit?: {
|
|
14
|
+
total: string;
|
|
15
|
+
protocols: any[];
|
|
16
|
+
hasDeposit: boolean;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 计算商品小计(不含其他费用)
|
|
21
|
+
* @param items - 购物车商品数组
|
|
22
|
+
* @returns 商品总价字符串,保留2位小数
|
|
23
|
+
*/
|
|
24
|
+
export declare const calculateSubtotal: (items: CartItem[]) => string;
|
|
25
|
+
/**
|
|
26
|
+
* @title: 单个商品的税费
|
|
27
|
+
* @description:
|
|
28
|
+
* 单个商品的税费 = 商品销售单价(折扣后) * 税率 * is_charge_tax /( 1+ 税率 * is_price_include_tax)
|
|
29
|
+
* $taxFee = $price * $taxRate * $isChargeTax / (1 + $taxRate * $isPriceIncludeTax);
|
|
30
|
+
* @return {*}
|
|
31
|
+
* @Author: xiangfeng.xue
|
|
32
|
+
*/
|
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
|
|
34
|
+
/**
|
|
35
|
+
* 计算所有价格明细
|
|
36
|
+
* @param items - 购物车商品数组
|
|
37
|
+
* @param options - 其他费用配置
|
|
38
|
+
* @returns 价格明细对象
|
|
39
|
+
*/
|
|
40
|
+
export declare const calculatePriceDetails: (shopInfo: any, items: CartItem[]) => PriceDetail;
|
|
41
|
+
/**
|
|
42
|
+
* @title: 计算定金
|
|
43
|
+
* @param items - 购物车商品数组
|
|
44
|
+
* @returns 定金字符串,保留2位小数
|
|
45
|
+
*/
|
|
46
|
+
export declare const calculateDeposit: (items: CartItem[]) => {
|
|
47
|
+
total: string;
|
|
48
|
+
protocols: any[];
|
|
49
|
+
hasDeposit: never;
|
|
50
|
+
} | undefined;
|
|
51
|
+
export {};
|
|
@@ -28,6 +28,8 @@ import { PisellInput, PisellGoodPassCard, PisellText, PisellToast } from '@pisel
|
|
|
28
28
|
import { useAppointmentBooking, useShopDiscount, useAppointmentBookingLogin, useAppointmentBookingAccount } from "../../hooks";
|
|
29
29
|
import "../../../booking/components/voucher/index.less";
|
|
30
30
|
import "./index.less";
|
|
31
|
+
import { useAppointmentBookingContext } from "../../context";
|
|
32
|
+
import { useDebounceFn } from 'ahooks';
|
|
31
33
|
var ShopDiscountHooks = {
|
|
32
34
|
onInited: 'shopDiscount:onInited',
|
|
33
35
|
onDestroy: 'shopDiscount:onDestroy',
|
|
@@ -69,11 +71,19 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
69
71
|
openLoginModal = _useAppointmentBookin.openLoginModal;
|
|
70
72
|
var _useAppointmentBookin2 = useAppointmentBookingAccount(),
|
|
71
73
|
accountLists = _useAppointmentBookin2.accountLists;
|
|
74
|
+
var _useAppointmentBookin3 = useAppointmentBookingContext(),
|
|
75
|
+
summary = _useAppointmentBookin3.summary;
|
|
76
|
+
var originTotal = summary.originTotal,
|
|
77
|
+
total = summary.total;
|
|
72
78
|
var cart = appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$s = appointmentBooking.store) === null || _appointmentBooking$s === void 0 ? void 0 : _appointmentBooking$s.cart;
|
|
73
79
|
var isUserLoggedIn = useMemo(function () {
|
|
74
80
|
var _utils$token, _utils$token$get;
|
|
75
81
|
return !!(utils !== null && utils !== void 0 && (_utils$token = utils.token) !== null && _utils$token !== void 0 && (_utils$token$get = _utils$token.get) !== null && _utils$token$get !== void 0 && _utils$token$get.call(_utils$token)) || false;
|
|
76
82
|
}, [store]);
|
|
83
|
+
useEffect(function () {
|
|
84
|
+
var shopDiscount = pisellos.getModule('shopDiscount');
|
|
85
|
+
shopDiscount.setOriginTotalAmount(originTotal);
|
|
86
|
+
}, [originTotal]);
|
|
77
87
|
var availableData = useMemo(function () {
|
|
78
88
|
return discountList.filter(function (item) {
|
|
79
89
|
return !!item.isAvailable;
|
|
@@ -110,13 +120,18 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
110
120
|
});
|
|
111
121
|
appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$b = appointmentBooking.batchUpdateCart) === null || _appointmentBooking$b === void 0 || _appointmentBooking$b.call(appointmentBooking, items);
|
|
112
122
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
|
|
124
|
+
// 防抖处理
|
|
125
|
+
var _useDebounceFn = useDebounceFn(function () {
|
|
126
|
+
var _shopDiscount$setBook, _appointmentBooking$o;
|
|
127
|
+
var products = cart === null || cart === void 0 ? void 0 : cart.getItems();
|
|
128
|
+
shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$setBook = shopDiscount.setBookingSubject) === null || _shopDiscount$setBook === void 0 || _shopDiscount$setBook.call(shopDiscount, appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o = appointmentBooking.otherParams) === null || _appointmentBooking$o === void 0 || (_appointmentBooking$o = _appointmentBooking$o.bookingSetting) === null || _appointmentBooking$o === void 0 ? void 0 : _appointmentBooking$o.bookingSubject);
|
|
129
|
+
var val = shopDiscount.calcDiscount(products);
|
|
130
|
+
batchUpdateCart(val.productList);
|
|
131
|
+
}, {
|
|
132
|
+
wait: 200
|
|
133
|
+
}),
|
|
134
|
+
onCartChange = _useDebounceFn.run;
|
|
120
135
|
var stringifiedHolders = useMemo(function () {
|
|
121
136
|
var _ret;
|
|
122
137
|
try {
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.event.calendar.limit.unavailable': string;
|
|
4
|
+
'pisell2.event.calendar.limit.sold.out': string;
|
|
5
|
+
'pisell2.event.calendar.limit.call.to.book': string;
|
|
6
|
+
'pisell2.event.calendar.limit.filling.up.fast': string;
|
|
7
|
+
'pisell2.event.calendar.limit.lots.of.space': string;
|
|
8
|
+
'pisell2.event.calendar.booking-closed': string;
|
|
9
|
+
'pisell2.event.calendar.call-to-book': string;
|
|
10
|
+
'pisell2.event.calendar.email-to-book': string;
|
|
11
|
+
'pisell2.event.close.title': string;
|
|
12
|
+
'pisell2.event.close.tip': string;
|
|
13
|
+
'pisell2.event.close.continue': string;
|
|
14
|
+
'pisell2.event.close.exit': string;
|
|
15
|
+
'pisell2.appointment.step': (step: number) => string;
|
|
16
|
+
'pisell2.event.select.category': (val: string) => string;
|
|
17
|
+
'pisell2.event.select.campus': (val: string) => string;
|
|
18
|
+
'pisell2.event.select.event': string;
|
|
19
|
+
'pisell2.event.cart': string;
|
|
20
|
+
'pisell2.event.total': string;
|
|
21
|
+
'pisell2.event.total.gst': (val: string, amount: any) => string;
|
|
22
|
+
'pisell2.event.continue': string;
|
|
23
|
+
'pisell2.event.details': string;
|
|
24
|
+
'pisell2.event.introduction': string;
|
|
25
|
+
'pisell2.event.schedule': string;
|
|
26
|
+
'pisell2.event.teacher': string;
|
|
27
|
+
'pisell2.event.campus': string;
|
|
28
|
+
'pisell2.event.resource': string;
|
|
29
|
+
'pisell2.event.booking.options': string;
|
|
30
|
+
'pisell2.event.add.to.cart': string;
|
|
31
|
+
'pisell2.event.description': string;
|
|
32
|
+
'pisell2.event.view.more': string;
|
|
33
|
+
'pisell2.event.view.less': string;
|
|
34
|
+
'pisell2.event.holder.modal.title': string;
|
|
35
|
+
'pisell2.event.confirm': string;
|
|
36
|
+
'pisell2.event.confirm.information': string;
|
|
37
|
+
'pisell2.event.confirm.information.tip': string;
|
|
38
|
+
'pisell2.event.confirm.information.other': string;
|
|
39
|
+
'pisell2.event.add.others': string;
|
|
40
|
+
'pisell2.event.checkout': string;
|
|
41
|
+
'pisell2.event.edit.event': string;
|
|
42
|
+
'pisell2.event.remove': string;
|
|
43
|
+
'pisell2.event.option': string;
|
|
44
|
+
'pisell2.event.order.items.error.title': string;
|
|
45
|
+
'pisell2.event.order.items.error.tip': (val: number) => string;
|
|
46
|
+
'pisell2.event.order.items.error.proceed': string;
|
|
47
|
+
'pisell2.event.order.items.error.return': string;
|
|
48
|
+
'pisell2.event.order.items.error.back': string;
|
|
49
|
+
'pisell2.event.order.items.error.continue': string;
|
|
50
|
+
'pisell2.event.order.items.error.all.tip': string;
|
|
51
|
+
'pisell2.event.remove.title': string;
|
|
52
|
+
'pisell2.event.remove.tip': string;
|
|
53
|
+
'pisell2.event.remove.cancel': string;
|
|
54
|
+
'pisell2.event.create': string;
|
|
55
|
+
'pisell2.event.search': string;
|
|
56
|
+
'pisell2.event.empty.service': string;
|
|
57
|
+
'pisell2.event.title': (val: number) => string;
|
|
58
|
+
'pisell2.event.create.form': string;
|
|
59
|
+
'pisell2.event.empty.event': string;
|
|
60
|
+
'pisell2.event.error.holder': string;
|
|
61
|
+
'pisell2.event.price.from': string;
|
|
62
|
+
'pisell2.event.empty.holder.title': string;
|
|
63
|
+
'pisell2.event.empty.holder.tip': string;
|
|
64
|
+
'pisell2.event.empty.holder.continue.tip': string;
|
|
65
|
+
'pisell2.event.empty.holder.go.back': string;
|
|
66
|
+
'pisell2.event.empty.holder.continue.anyway': string;
|
|
67
|
+
'pisell2.event.event.full.title': string;
|
|
68
|
+
'pisell2.event.event.full.tip': string;
|
|
69
|
+
'pisell2.event.event.full.ok': string;
|
|
70
|
+
'pisell2.event.capacity.limit.reached.title': string;
|
|
71
|
+
'pisell2.event.capacity.limit.reached.tip': string;
|
|
72
|
+
'pisell2.appointment.booking.empty.service': string;
|
|
73
|
+
'pisell2.appointment.booking.empty.data': string;
|
|
74
|
+
'pisell2.appointment.booking.empty.time': string;
|
|
75
|
+
'pisell2.appointment.service.title': (val: number) => string;
|
|
76
|
+
'pisell2.appointment.add.guest': string;
|
|
77
|
+
'pisell2.appointment.edit.service': string;
|
|
78
|
+
'pisell2.appointment.remove.guest': string;
|
|
79
|
+
'pisell2.appointment.no.available.service': string;
|
|
80
|
+
'pisell2.appointment.max.guest': string;
|
|
81
|
+
'pisell2.appointment.no.available.time': string;
|
|
82
|
+
'pisell2.appointment.monday': string;
|
|
83
|
+
'pisell2.appointment.tuesday': string;
|
|
84
|
+
'pisell2.appointment.wednesday': string;
|
|
85
|
+
'pisell2.appointment.thursday': string;
|
|
86
|
+
'pisell2.appointment.friday': string;
|
|
87
|
+
'pisell2.appointment.saturday': string;
|
|
88
|
+
'pisell2.appointment.sunday': string;
|
|
89
|
+
'pisell2.appointment.any.professional': string;
|
|
90
|
+
'pisell2.appointment.for.maximum.availability': string;
|
|
91
|
+
'pisell2.appointment.deposit': string;
|
|
92
|
+
'pisell2.appointment.deposit.agreed': string;
|
|
93
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
|
94
|
+
'pisell2.appointment.deposit.and': string;
|
|
95
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
|
96
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
|
97
|
+
'pisell2.appointment.deposit.close': string;
|
|
98
|
+
'pisell2.appointment.tips': string;
|
|
99
|
+
'pisell2.appointment.tips.content': string;
|
|
100
|
+
'pisell2.appointment.fill-form': string;
|
|
101
|
+
'pisell2.appointment.select.holder': (val: string) => string;
|
|
102
|
+
'pisell2.appointment.select.time': string;
|
|
103
|
+
'pisell2.appointment.unselect.time': string;
|
|
104
|
+
'pisell2.appointment.unselect.date': string;
|
|
105
|
+
'pisell2.appointment.unuse.date': string;
|
|
106
|
+
'pisell2.appointment.add-guests': string;
|
|
107
|
+
'pisell2.appointment.policy': string;
|
|
108
|
+
'pisell2.appointment.policy.confirm': string;
|
|
109
|
+
'pisell2.appointment.resource.tip': (val: string) => string;
|
|
110
|
+
'pisell2.text.apply': string;
|
|
111
|
+
'pisell2.text.goodpass': string;
|
|
112
|
+
'pisell2.text.goodpass.product-vouchers': string;
|
|
113
|
+
'pisell2.text.goodpass.view-more': string;
|
|
114
|
+
'pisell2.text.goodpass.code': string;
|
|
115
|
+
'pisell2.text.goodpass.enter-code': string;
|
|
116
|
+
'pisell2.text.goodpass.code-invalid': string;
|
|
117
|
+
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
118
|
+
'pisell2.text.goodpass.login': string;
|
|
119
|
+
'pisell2.text.goodpass.login-tip': string;
|
|
120
|
+
'pisell2.text.contact-info.title': string;
|
|
121
|
+
};
|
|
122
|
+
'zh-CN': {
|
|
123
|
+
'pisell2.event.calendar.limit.unavailable': string;
|
|
124
|
+
'pisell2.event.calendar.limit.sold.out': string;
|
|
125
|
+
'pisell2.event.calendar.limit.call.to.book': string;
|
|
126
|
+
'pisell2.event.calendar.limit.filling.up.fast': string;
|
|
127
|
+
'pisell2.event.calendar.limit.lots.of.space': string;
|
|
128
|
+
'pisell2.event.calendar.booking-closed': string;
|
|
129
|
+
'pisell2.event.calendar.call-to-book': string;
|
|
130
|
+
'pisell2.event.calendar.email-to-book': string;
|
|
131
|
+
'pisell2.event.close.title': string;
|
|
132
|
+
'pisell2.event.close.tip': string;
|
|
133
|
+
'pisell2.event.close.continue': string;
|
|
134
|
+
'pisell2.event.close.exit': string;
|
|
135
|
+
'pisell2.appointment.step': (step: number) => string;
|
|
136
|
+
'pisell2.event.select.category': (val: string) => string;
|
|
137
|
+
'pisell2.event.select.event': string;
|
|
138
|
+
'pisell2.event.select.campus': (val: string) => string;
|
|
139
|
+
'pisell2.event.cart': string;
|
|
140
|
+
'pisell2.event.total': string;
|
|
141
|
+
'pisell2.event.total.gst': (val: string, amount: any) => string;
|
|
142
|
+
'pisell2.event.continue': string;
|
|
143
|
+
'pisell2.event.details': string;
|
|
144
|
+
'pisell2.event.introduction': string;
|
|
145
|
+
'pisell2.event.schedule': string;
|
|
146
|
+
'pisell2.event.teacher': string;
|
|
147
|
+
'pisell2.event.campus': string;
|
|
148
|
+
'pisell2.event.resource': string;
|
|
149
|
+
'pisell2.event.booking.options': string;
|
|
150
|
+
'pisell2.event.add.to.cart': string;
|
|
151
|
+
'pisell2.event.description': string;
|
|
152
|
+
'pisell2.event.view.more': string;
|
|
153
|
+
'pisell2.event.view.less': string;
|
|
154
|
+
'pisell2.event.holder.modal.title': string;
|
|
155
|
+
'pisell2.event.confirm': string;
|
|
156
|
+
'pisell2.event.confirm.information': string;
|
|
157
|
+
'pisell2.event.confirm.information.tip': string;
|
|
158
|
+
'pisell2.event.confirm.information.other': string;
|
|
159
|
+
'pisell2.event.add.others': string;
|
|
160
|
+
'pisell2.event.checkout': string;
|
|
161
|
+
'pisell2.event.edit.event': string;
|
|
162
|
+
'pisell2.event.remove': string;
|
|
163
|
+
'pisell2.event.option': string;
|
|
164
|
+
'pisell2.event.order.items.error.title': string;
|
|
165
|
+
'pisell2.event.order.items.error.tip': (val: number) => string;
|
|
166
|
+
'pisell2.event.order.items.error.proceed': string;
|
|
167
|
+
'pisell2.event.order.items.error.return': string;
|
|
168
|
+
'pisell2.event.order.items.error.back': string;
|
|
169
|
+
'pisell2.event.order.items.error.continue': string;
|
|
170
|
+
'pisell2.event.order.items.error.all.tip': string;
|
|
171
|
+
'pisell2.event.remove.title': string;
|
|
172
|
+
'pisell2.event.remove.tip': string;
|
|
173
|
+
'pisell2.event.remove.cancel': string;
|
|
174
|
+
'pisell2.event.create': string;
|
|
175
|
+
'pisell2.event.search': string;
|
|
176
|
+
'pisell2.event.empty.service': string;
|
|
177
|
+
'pisell2.event.title': (val: number) => string;
|
|
178
|
+
'pisell2.event.create.form': string;
|
|
179
|
+
'pisell2.event.empty.event': string;
|
|
180
|
+
'pisell2.event.error.holder': string;
|
|
181
|
+
'pisell2.event.price.from': string;
|
|
182
|
+
'pisell2.event.empty.holder.title': string;
|
|
183
|
+
'pisell2.event.empty.holder.tip': string;
|
|
184
|
+
'pisell2.event.empty.holder.continue.tip': string;
|
|
185
|
+
'pisell2.event.empty.holder.go.back': string;
|
|
186
|
+
'pisell2.event.empty.holder.continue.anyway': string;
|
|
187
|
+
'pisell2.event.event.full.title': string;
|
|
188
|
+
'pisell2.event.event.full.tip': string;
|
|
189
|
+
'pisell2.event.event.full.ok': string;
|
|
190
|
+
'pisell2.event.capacity.limit.reached.title': string;
|
|
191
|
+
'pisell2.event.capacity.limit.reached.tip': string;
|
|
192
|
+
'pisell2.appointment.booking.empty.service': string;
|
|
193
|
+
'pisell2.appointment.booking.empty.data': string;
|
|
194
|
+
'pisell2.appointment.booking.empty.time': string;
|
|
195
|
+
'pisell2.appointment.service.title': (val: number) => string;
|
|
196
|
+
'pisell2.appointment.add.guest': string;
|
|
197
|
+
'pisell2.appointment.edit.service': string;
|
|
198
|
+
'pisell2.appointment.remove.guest': string;
|
|
199
|
+
'pisell2.appointment.no.available.service': string;
|
|
200
|
+
'pisell2.appointment.max.guest': string;
|
|
201
|
+
'pisell2.appointment.no.available.time': string;
|
|
202
|
+
'pisell2.appointment.monday': string;
|
|
203
|
+
'pisell2.appointment.tuesday': string;
|
|
204
|
+
'pisell2.appointment.wednesday': string;
|
|
205
|
+
'pisell2.appointment.thursday': string;
|
|
206
|
+
'pisell2.appointment.friday': string;
|
|
207
|
+
'pisell2.appointment.saturday': string;
|
|
208
|
+
'pisell2.appointment.sunday': string;
|
|
209
|
+
'pisell2.appointment.any.professional': string;
|
|
210
|
+
'pisell2.appointment.for.maximum.availability': string;
|
|
211
|
+
'pisell2.appointment.deposit': string;
|
|
212
|
+
'pisell2.appointment.deposit.agreed': string;
|
|
213
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
|
214
|
+
'pisell2.appointment.deposit.and': string;
|
|
215
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
|
216
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
|
217
|
+
'pisell2.appointment.deposit.close': string;
|
|
218
|
+
'pisell2.appointment.tips': string;
|
|
219
|
+
'pisell2.appointment.tips.content': string;
|
|
220
|
+
'pisell2.appointment.fill-form': string;
|
|
221
|
+
'pisell2.appointment.select.holder': (val: string) => string;
|
|
222
|
+
'pisell2.appointment.select.time': string;
|
|
223
|
+
'pisell2.appointment.unselect.time': string;
|
|
224
|
+
'pisell2.appointment.unselect.date': string;
|
|
225
|
+
'pisell2.appointment.unuse.date': string;
|
|
226
|
+
'pisell2.appointment.add-guests': string;
|
|
227
|
+
'pisell2.appointment.policy': string;
|
|
228
|
+
'pisell2.appointment.policy.confirm': string;
|
|
229
|
+
'pisell2.appointment.resource.tip': (val: string) => string;
|
|
230
|
+
'pisell2.text.apply': string;
|
|
231
|
+
'pisell2.text.goodpass': string;
|
|
232
|
+
'pisell2.text.goodpass.product-vouchers': string;
|
|
233
|
+
'pisell2.text.goodpass.view-more': string;
|
|
234
|
+
'pisell2.text.goodpass.code': string;
|
|
235
|
+
'pisell2.text.goodpass.enter-code': string;
|
|
236
|
+
'pisell2.text.goodpass.code-invalid': string;
|
|
237
|
+
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
238
|
+
'pisell2.text.goodpass.login': string;
|
|
239
|
+
'pisell2.text.goodpass.login-tip': string;
|
|
240
|
+
'pisell2.text.contact-info.title': string;
|
|
241
|
+
};
|
|
242
|
+
'zh-HK': {
|
|
243
|
+
'pisell2.event.calendar.limit.unavailable': string;
|
|
244
|
+
'pisell2.event.calendar.limit.sold.out': string;
|
|
245
|
+
'pisell2.event.calendar.limit.call.to.book': string;
|
|
246
|
+
'pisell2.event.calendar.limit.filling.up.fast': string;
|
|
247
|
+
'pisell2.event.calendar.limit.lots.of.space': string;
|
|
248
|
+
'pisell2.event.calendar.booking-closed': string;
|
|
249
|
+
'pisell2.event.calendar.call-to-book': string;
|
|
250
|
+
'pisell2.event.calendar.email-to-book': string;
|
|
251
|
+
'pisell2.event.close.title': string;
|
|
252
|
+
'pisell2.event.close.tip': string;
|
|
253
|
+
'pisell2.event.close.continue': string;
|
|
254
|
+
'pisell2.event.close.exit': string;
|
|
255
|
+
'pisell2.appointment.step': (step: number) => string;
|
|
256
|
+
'pisell2.event.select.category': (val: string) => string;
|
|
257
|
+
'pisell2.event.select.event': string;
|
|
258
|
+
'pisell2.event.select.campus': (val: string) => string;
|
|
259
|
+
'pisell2.event.cart': string;
|
|
260
|
+
'pisell2.event.total': string;
|
|
261
|
+
'pisell2.event.total.gst': (val: string, amount: any) => string;
|
|
262
|
+
'pisell2.event.continue': string;
|
|
263
|
+
'pisell2.event.details': string;
|
|
264
|
+
'pisell2.event.introduction': string;
|
|
265
|
+
'pisell2.event.schedule': string;
|
|
266
|
+
'pisell2.event.teacher': string;
|
|
267
|
+
'pisell2.event.campus': string;
|
|
268
|
+
'pisell2.event.resource': string;
|
|
269
|
+
'pisell2.event.booking.options': string;
|
|
270
|
+
'pisell2.event.add.to.cart': string;
|
|
271
|
+
'pisell2.event.description': string;
|
|
272
|
+
'pisell2.event.view.more': string;
|
|
273
|
+
'pisell2.event.view.less': string;
|
|
274
|
+
'pisell2.event.holder.modal.title': string;
|
|
275
|
+
'pisell2.event.confirm': string;
|
|
276
|
+
'pisell2.event.confirm.information': string;
|
|
277
|
+
'pisell2.event.confirm.information.tip': string;
|
|
278
|
+
'pisell2.event.confirm.information.other': string;
|
|
279
|
+
'pisell2.event.add.others': string;
|
|
280
|
+
'pisell2.event.checkout': string;
|
|
281
|
+
'pisell2.event.edit.event': string;
|
|
282
|
+
'pisell2.event.remove': string;
|
|
283
|
+
'pisell2.event.option': string;
|
|
284
|
+
'pisell2.event.order.items.error.title': string;
|
|
285
|
+
'pisell2.event.order.items.error.tip': (val: number) => string;
|
|
286
|
+
'pisell2.event.order.items.error.proceed': string;
|
|
287
|
+
'pisell2.event.order.items.error.return': string;
|
|
288
|
+
'pisell2.event.order.items.error.back': string;
|
|
289
|
+
'pisell2.event.order.items.error.continue': string;
|
|
290
|
+
'pisell2.event.order.items.error.all.tip': string;
|
|
291
|
+
'pisell2.event.remove.title': string;
|
|
292
|
+
'pisell2.event.remove.tip': string;
|
|
293
|
+
'pisell2.event.remove.cancel': string;
|
|
294
|
+
'pisell2.event.create': string;
|
|
295
|
+
'pisell2.event.search': string;
|
|
296
|
+
'pisell2.event.empty.service': string;
|
|
297
|
+
'pisell2.event.title': (val: number) => string;
|
|
298
|
+
'pisell2.event.create.form': string;
|
|
299
|
+
'pisell2.event.empty.event': string;
|
|
300
|
+
'pisell2.event.error.holder': string;
|
|
301
|
+
'pisell2.event.price.from': string;
|
|
302
|
+
'pisell2.event.empty.holder.title': string;
|
|
303
|
+
'pisell2.event.empty.holder.tip': string;
|
|
304
|
+
'pisell2.event.empty.holder.continue.tip': string;
|
|
305
|
+
'pisell2.event.empty.holder.go.back': string;
|
|
306
|
+
'pisell2.event.empty.holder.continue.anyway': string;
|
|
307
|
+
'pisell2.event.event.full.title': string;
|
|
308
|
+
'pisell2.event.event.full.tip': string;
|
|
309
|
+
'pisell2.event.event.full.ok': string;
|
|
310
|
+
'pisell2.event.capacity.limit.reached.title': string;
|
|
311
|
+
'pisell2.event.capacity.limit.reached.tip': string;
|
|
312
|
+
'pisell2.appointment.booking.empty.service': string;
|
|
313
|
+
'pisell2.appointment.booking.empty.data': string;
|
|
314
|
+
'pisell2.appointment.booking.empty.time': string;
|
|
315
|
+
'pisell2.appointment.service.title': (val: number) => string;
|
|
316
|
+
'pisell2.appointment.add.guest': string;
|
|
317
|
+
'pisell2.appointment.edit.service': string;
|
|
318
|
+
'pisell2.appointment.remove.guest': string;
|
|
319
|
+
'pisell2.appointment.no.available.service': string;
|
|
320
|
+
'pisell2.appointment.max.guest': string;
|
|
321
|
+
'pisell2.appointment.no.available.time': string;
|
|
322
|
+
'pisell2.appointment.monday': string;
|
|
323
|
+
'pisell2.appointment.tuesday': string;
|
|
324
|
+
'pisell2.appointment.wednesday': string;
|
|
325
|
+
'pisell2.appointment.thursday': string;
|
|
326
|
+
'pisell2.appointment.friday': string;
|
|
327
|
+
'pisell2.appointment.saturday': string;
|
|
328
|
+
'pisell2.appointment.sunday': string;
|
|
329
|
+
'pisell2.appointment.any.professional': string;
|
|
330
|
+
'pisell2.appointment.for.maximum.availability': string;
|
|
331
|
+
'pisell2.appointment.deposit': string;
|
|
332
|
+
'pisell2.appointment.deposit.agreed': string;
|
|
333
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
|
334
|
+
'pisell2.appointment.deposit.and': string;
|
|
335
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
|
336
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
|
337
|
+
'pisell2.appointment.deposit.close': string;
|
|
338
|
+
'pisell2.appointment.tips': string;
|
|
339
|
+
'pisell2.appointment.tips.content': string;
|
|
340
|
+
'pisell2.appointment.fill-form': string;
|
|
341
|
+
'pisell2.appointment.select.holder': (val: string) => string;
|
|
342
|
+
'pisell2.appointment.select.time': string;
|
|
343
|
+
'pisell2.appointment.unselect.time': string;
|
|
344
|
+
'pisell2.appointment.unselect.date': string;
|
|
345
|
+
'pisell2.appointment.unuse.date': string;
|
|
346
|
+
'pisell2.appointment.add-guests': string;
|
|
347
|
+
'pisell2.appointment.policy': string;
|
|
348
|
+
'pisell2.appointment.policy.confirm': string;
|
|
349
|
+
'pisell2.appointment.resource.tip': (val: string) => string;
|
|
350
|
+
'pisell2.text.apply': string;
|
|
351
|
+
'pisell2.text.goodpass': string;
|
|
352
|
+
'pisell2.text.goodpass.product-vouchers': string;
|
|
353
|
+
'pisell2.text.goodpass.view-more': string;
|
|
354
|
+
'pisell2.text.goodpass.code': string;
|
|
355
|
+
'pisell2.text.goodpass.enter-code': string;
|
|
356
|
+
'pisell2.text.goodpass.code-invalid': string;
|
|
357
|
+
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
358
|
+
'pisell2.text.goodpass.login': string;
|
|
359
|
+
'pisell2.text.goodpass.login-tip': string;
|
|
360
|
+
'pisell2.text.contact-info.title': string;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
export default _default;
|
|
@@ -60,14 +60,15 @@ export var formatProducts = function formatProducts(values) {
|
|
|
60
60
|
discountway: 'num',
|
|
61
61
|
discount_type: 'discount',
|
|
62
62
|
bundle_edit: (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.bundle_edit,
|
|
63
|
-
product_bundle: formatProductBundle((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 || (_item$_extend3 = _item$_extend3.other) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.bundle),
|
|
63
|
+
product_bundle: formatProductBundle((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 || (_item$_extend3 = _item$_extend3.other) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.bundle, item.is_price_include_tax),
|
|
64
64
|
"product_option_item": formatProductOption((_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 || (_item$_extend4 = _item$_extend4.other) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.option),
|
|
65
65
|
"product_variant_id": ((_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 || (_item$_extend5 = _item$_extend5.other) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.product_variant_id) || 0,
|
|
66
66
|
"source_product_price": getSourceProductPrice(item),
|
|
67
67
|
"main_product_selling_price": (_getMainProductSellin = getMainProductSellingPrice(item)) !== null && _getMainProductSellin !== void 0 ? _getMainProductSellin : formatProductPrice(item),
|
|
68
68
|
"calculated_original_price": formatOriginalPrice(item),
|
|
69
69
|
"calculated_selling_price": formatSellingPrice(item),
|
|
70
|
-
"tax_fee": item._extend.tax_fee
|
|
70
|
+
"tax_fee": item._extend.tax_fee,
|
|
71
|
+
is_price_include_tax: item.is_price_include_tax
|
|
71
72
|
};
|
|
72
73
|
});
|
|
73
74
|
return arr;
|
|
@@ -834,7 +834,7 @@ var getMainProductTotal = function getMainProductTotal(item) {
|
|
|
834
834
|
// 子商品价格
|
|
835
835
|
var bundleItemPrice = new Decimal((_ref5 = (_bundleItem$bundle_se2 = bundleItem.bundle_selling_price) !== null && _bundleItem$bundle_se2 !== void 0 ? _bundleItem$bundle_se2 : bundleItem.price) !== null && _ref5 !== void 0 ? _ref5 : 0);
|
|
836
836
|
// todo: 套餐子商品后不需要处理 子商品价格 - 子商品折扣金额
|
|
837
|
-
var bundleItemTotal = bundleItemPrice
|
|
837
|
+
var bundleItemTotal = bundleItemPrice;
|
|
838
838
|
total = total.add(bundleItemTotal);
|
|
839
839
|
}
|
|
840
840
|
}
|
|
@@ -339,6 +339,13 @@ var Footer = function Footer(props) {
|
|
|
339
339
|
ScheduleModule: ScheduleModule
|
|
340
340
|
}, getDataFromHost()));
|
|
341
341
|
}, [state, isEdit]);
|
|
342
|
+
useEffect(function () {
|
|
343
|
+
window.dispatchEvent(new CustomEvent('onOriginExpectAmountWithoutDiscountChange', {
|
|
344
|
+
detail: {
|
|
345
|
+
originExpectAmountWithoutDiscount: total === null || total === void 0 ? void 0 : total.originExpectAmountWithoutDiscount
|
|
346
|
+
}
|
|
347
|
+
}));
|
|
348
|
+
}, [total === null || total === void 0 ? void 0 : total.originExpectAmountWithoutDiscount]);
|
|
342
349
|
var orderTotalList = useMemo(function () {
|
|
343
350
|
return [
|
|
344
351
|
// 订单已付金额
|
|
@@ -15,7 +15,7 @@ export declare const formatProductOption: (option: any) => any;
|
|
|
15
15
|
* @Author: zhiwei.Wang
|
|
16
16
|
* @Date: 2024-02-19 09:26
|
|
17
17
|
*/
|
|
18
|
-
export declare const formatProductBundle: (bundle: any) => any;
|
|
18
|
+
export declare const formatProductBundle: (bundle: any, is_price_include_tax: number) => any;
|
|
19
19
|
/**
|
|
20
20
|
* 获取子商品折扣信息
|
|
21
21
|
* @param item
|
|
@@ -92,7 +92,7 @@ var log = function log(data) {
|
|
|
92
92
|
* @Author: zhiwei.Wang
|
|
93
93
|
* @Date: 2024-02-19 09:26
|
|
94
94
|
*/
|
|
95
|
-
export var formatProductBundle = function formatProductBundle(bundle) {
|
|
95
|
+
export var formatProductBundle = function formatProductBundle(bundle, is_price_include_tax) {
|
|
96
96
|
if (!bundle) {
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
@@ -133,6 +133,7 @@ export var formatProductBundle = function formatProductBundle(bundle) {
|
|
|
133
133
|
"option": option,
|
|
134
134
|
"bundle_selling_price": Math.abs(d === null || d === void 0 ? void 0 : d.price),
|
|
135
135
|
// "bundle_sum_price": d?.original_price || d?.original_total,
|
|
136
|
+
is_price_include_tax: is_price_include_tax,
|
|
136
137
|
"metadata": {
|
|
137
138
|
custom_product_bundle_map_id: d._id,
|
|
138
139
|
// 子商品单数量附加费
|
|
@@ -322,8 +323,8 @@ export var formatOriginalPrice = function formatOriginalPrice(item) {
|
|
|
322
323
|
|
|
323
324
|
/**
|
|
324
325
|
* 获取套餐子商品折扣差价
|
|
325
|
-
* @param item
|
|
326
|
-
* @returns
|
|
326
|
+
* @param item
|
|
327
|
+
* @returns
|
|
327
328
|
*/
|
|
328
329
|
var getBundleProductDiscountDifference = function getBundleProductDiscountDifference(item) {
|
|
329
330
|
var _item$_extend9, _item$_extend10, _item$_extend11;
|
|
@@ -521,7 +522,7 @@ var formatProducts = function formatProducts(item, quantity) {
|
|
|
521
522
|
"discount_per": item._extend.discount_per,
|
|
522
523
|
"discount_type": item._extend.discount_type || discount_type,
|
|
523
524
|
"order_detail_id": item._extend.order_detail_id || 0,
|
|
524
|
-
"product_bundle": formatProductBundle((_item$_extend36 = item._extend) === null || _item$_extend36 === void 0 || (_item$_extend36 = _item$_extend36.other) === null || _item$_extend36 === void 0 ? void 0 : _item$_extend36.bundle),
|
|
525
|
+
"product_bundle": formatProductBundle((_item$_extend36 = item._extend) === null || _item$_extend36 === void 0 || (_item$_extend36 = _item$_extend36.other) === null || _item$_extend36 === void 0 ? void 0 : _item$_extend36.bundle, item.is_price_include_tax),
|
|
525
526
|
"bundle_edit": item._extend.bundle_edit || bundleDiscountList.length ? 1 : 0,
|
|
526
527
|
"product_option_item": formatProductOption((_item$_extend37 = item._extend) === null || _item$_extend37 === void 0 || (_item$_extend37 = _item$_extend37.other) === null || _item$_extend37 === void 0 ? void 0 : _item$_extend37.option),
|
|
527
528
|
"product_variant_id": ((_item$_extend38 = item._extend) === null || _item$_extend38 === void 0 || (_item$_extend38 = _item$_extend38.other) === null || _item$_extend38 === void 0 ? void 0 : _item$_extend38.product_variant_id) || 0,
|
|
@@ -531,7 +532,8 @@ var formatProducts = function formatProducts(item, quantity) {
|
|
|
531
532
|
"calculated_original_price": formatOriginalPrice(item),
|
|
532
533
|
"calculated_selling_price": formatSellingPrice(item),
|
|
533
534
|
"tax_fee": item._extend.tax_fee,
|
|
534
|
-
"custom_deposit_data": item.custom_deposit_data
|
|
535
|
+
"custom_deposit_data": item.custom_deposit_data,
|
|
536
|
+
is_price_include_tax: item.is_price_include_tax
|
|
535
537
|
};
|
|
536
538
|
};
|
|
537
539
|
|