@pisell/private-materials 6.9.6 → 6.10.2
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/README.md +1 -5
- 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 +164 -150
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/Sales/Cart/index.js +3 -20
- package/es/components/Sales/Cart/utils.d.ts +0 -5
- package/es/components/Sales/Cart/utils.js +0 -16
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/Sales/Summary/utils.js +4 -5
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- 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/Header/index.js +12 -12
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +5 -46
- package/es/components/appointmentBooking/components/Voucher/index.js +5 -26
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/hooks.d.ts +1 -1
- package/es/components/appointmentBooking/hooks.js +13 -6
- package/es/components/appointmentBooking/locales.d.ts +0 -3
- package/es/components/appointmentBooking/locales.js +0 -3
- package/es/components/appointmentBooking/utils.d.ts +0 -23
- package/es/components/appointmentBooking/utils.js +0 -159
- package/es/components/booking/addons/index.js +2 -3
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/actionButtons/index.js +0 -10
- package/es/components/booking/components/customiseItemModal/index.js +7 -4
- package/es/components/booking/components/footer/amount.d.ts +0 -1
- package/es/components/booking/components/footer/amount.js +165 -358
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +170 -497
- package/es/components/booking/components/footer/utils.d.ts +1 -1
- package/es/components/booking/components/footer/utils.js +83 -144
- package/es/components/booking/components/voucher/index.js +6 -15
- package/es/components/booking/components/voucher/index.less +1 -4
- package/es/components/booking/components/voucherModal/index.less +0 -1
- package/es/components/booking/dashboard/index.js +92 -78
- package/es/components/booking/dashboard/serve.d.ts +0 -1
- package/es/components/booking/dashboard/serve.js +0 -22
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/hooks/useQuotation.js +10 -32
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/client/index.js +6 -16
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Group/utils.js +2 -2
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.js +41 -45
- package/es/components/booking/info2/cartClientCard/index.js +10 -16
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editNormalService/index.js +17 -22
- package/es/components/booking/info2/service/editService/index.js +2 -33
- package/es/components/booking/info2/service/editService/utils.js +5 -9
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/locales.d.ts +0 -3
- package/es/components/booking/locales.js +3 -6
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/booking/utils.js +4 -4
- package/es/components/checkout/PaymentModal.d.ts +0 -1
- package/es/components/checkout/PaymentModal.js +64 -175
- package/es/components/checkout/components/PaymentDetailModal/index.less +429 -426
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -3
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +1 -0
- package/es/components/checkout/components/PaymentResultToast/index.js +0 -2
- package/es/components/checkout/components/WalletPassModule/index.js +0 -1
- package/es/components/checkout/components/WalletPassModule/utils.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/utils.js +3 -17
- package/es/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/es/components/checkout/hooks/useWalletPass.js +198 -324
- package/es/components/checkout/index.less +0 -6
- package/es/components/checkout/plugin.js +12 -59
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/EFTPos.js +6 -15
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.js +0 -5
- package/es/components/eftposPay/component/fail/failCustom.js +12 -16
- package/es/components/eftposPay/component/fail/index.js +5 -12
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/const.d.ts +1 -6
- package/es/components/eftposPay/const.js +0 -3
- package/es/components/eftposPay/hooks.d.ts +2 -3
- package/es/components/eftposPay/hooks.js +0 -12
- package/es/components/eftposPay/index.js +1 -5
- package/es/components/eftposPay/locales.d.ts +0 -36
- package/es/components/eftposPay/locales.js +3 -42
- package/es/components/eftposPay/manufacturer.d.ts +0 -1
- package/es/components/eftposPay/manufacturer.js +0 -5
- package/es/components/eftposPay/pay.js +2 -6
- package/es/components/eftposPay/store/index.d.ts +5 -12
- package/es/components/eftposPay/tyro/index.js +4 -97
- package/es/components/eftposPay/windcave/windcave.js +9 -9
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +1 -2
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.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/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/kioskSkuDetail/index.d.ts +0 -3
- package/es/components/kioskSkuDetail/index.js +173 -268
- package/es/components/kioskSkuDetail/index.less +7 -49
- package/es/components/kioskSkuDetail/locales.d.ts +0 -6
- package/es/components/kioskSkuDetail/locales.js +3 -9
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/es/components/pay/toB/components/EFTPOS/index.js +1 -8
- package/es/components/pay/toB/components/MX51/index.js +1 -2
- package/es/components/pay/toB/paymentMethods/index.js +1 -2
- package/es/components/pay/toB/types/index.d.ts +0 -9
- package/es/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/index.js +5 -54
- package/es/components/pay/toC/PaymentList/index.less +1 -58
- package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +0 -22
- package/es/components/pay/toC/PaymentList/utils.d.ts +0 -26
- package/es/components/pay/toC/PaymentList/utils.js +6 -188
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +3 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +42 -139
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +145 -166
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- 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 +1 -3
- package/es/components/pay/toC/index.js +28 -68
- package/es/components/pay/toC/locales.d.ts +0 -6
- package/es/components/pay/toC/locales.js +3 -9
- package/es/components/pay/toC/model.d.ts +1 -10
- package/es/components/pay/toC/serve.d.ts +0 -18
- package/es/components/pay/toC/serve.js +1 -29
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +0 -4
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.js +1 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/systemSettings/registry/components/SectionList.js +1 -5
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +8 -5
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +63 -142
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +1 -2
- package/es/components/ticketBooking/components/ticketBooking/index.js +5 -19
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -3
- package/es/components/ticketBooking/context/OsKeyContext.js +2 -12
- package/es/components/ticketBooking/context/index.d.ts +1 -1
- package/es/components/ticketBooking/context/index.js +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +11 -14
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +10 -69
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/index.js +1 -2
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/walletList/index.js +2 -7
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/index.d.ts +4 -7
- package/es/index.js +4 -7
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/clinetSearch/index.d.ts +0 -1
- package/es/plus/clinetSearch/index.js +5 -27
- package/es/plus/clinetSearch/locales.d.ts +0 -3
- package/es/plus/clinetSearch/locales.js +3 -6
- package/es/plus/clinetSearch/types.d.ts +0 -9
- package/es/plus/myTeamLogin/MyTeamLoginCpt.d.ts +9 -0
- package/es/plus/myTeamLogin/MyTeamLoginCpt.js +205 -0
- package/es/plus/myTeamLogin/index.d.ts +11 -0
- package/es/{components/ecocup/cupList/hooks/useCupApi.js → plus/myTeamLogin/index.js} +259 -129
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/index.js +3 -12
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +4 -6
- package/es/plus/productSelect/ProductList/gridComponents.js +10 -30
- package/es/plus/productSelect/index.d.ts +1 -3
- package/es/plus/productSelect/index.js +14 -85
- package/es/plus/saasCreateOrganization/index.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
- package/es/plus/skuOptionsSelection/locales.d.ts +0 -3
- package/es/plus/skuOptionsSelection/locales.js +0 -3
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +2 -11
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +0 -10
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +0 -1
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +0 -2
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +0 -10
- package/es/plus/walletPassGallery/components/passDetail/index.js +5 -6
- package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -2
- package/es/plus/walletPassGallery/components/timelineSection/index.js +3 -9
- package/es/plus/walletPassGallery/index.js +2 -2
- package/es/plus/walletPassGallery/index.less +1 -1
- package/es/plus/walletPassGallery/serve.d.ts +0 -8
- package/es/plus/walletPassGallery/serve.js +50 -78
- package/es/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/es/plus/webPosLogin/WebPosLogin.js +2 -7
- package/es/plus/webPosLogin/components/LoginPanel/index.js +3 -0
- package/es/plus/webPosLogin/components/MediaDisplay/index.js +5 -5
- package/es/plus/webPosLogin/components/MediaDisplay/index.less +6 -10
- package/es/plus/webPosLogin/service.js +1 -2
- package/es/pro/Login2.0/AuthModal.js +4 -12
- package/es/pro/Login2.0/Login2.js +10 -16
- package/es/pro/Login2.0/components/LoginCodeInput.js +3 -36
- package/es/pro/Login2.0/index.less +3 -15
- package/es/pro/Login2.0/shared/types.d.ts +4 -0
- package/es/pro/Login2.0/steps/CodeInput.js +7 -37
- package/es/pro/NumericStepper/index.d.ts +1 -27
- package/es/pro/NumericStepper/index.js +68 -84
- package/es/pro/NumericStepper/index.less +136 -261
- package/es/pro/Selector/Selector.js +10 -17
- package/es/pro/Selector/demo.d.ts +1 -0
- package/es/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/es/pro/Selector/hooks/usePresetProps.js +2 -4
- package/es/pro/Selector/types.d.ts +0 -1
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellNumberSelector/example.js +68 -0
- package/es/pro/pisellPaymentList/example.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +1 -2
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +1 -2
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +3 -6
- package/es/pro/skuDetailModal/index.js +55 -61
- package/es/pro/skuDetailModal/index.less +4 -46
- package/es/pro/skuDetailModal/types.d.ts +0 -7
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/Sales/Cart/index.js +7 -25
- package/lib/components/Sales/Cart/utils.d.ts +0 -5
- package/lib/components/Sales/Cart/utils.js +1 -13
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/Sales/Summary/utils.js +4 -2
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- 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/Header/index.js +8 -3
- package/lib/components/appointmentBooking/components/Services/index.js +1 -5
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -27
- package/lib/components/appointmentBooking/components/Voucher/index.js +6 -37
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/hooks.d.ts +1 -1
- package/lib/components/appointmentBooking/hooks.js +11 -6
- package/lib/components/appointmentBooking/locales.d.ts +0 -3
- package/lib/components/appointmentBooking/locales.js +0 -3
- package/lib/components/appointmentBooking/utils.d.ts +0 -23
- package/lib/components/appointmentBooking/utils.js +0 -103
- package/lib/components/booking/addons/index.js +2 -3
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/actionButtons/index.js +0 -10
- package/lib/components/booking/components/customiseItemModal/index.js +5 -4
- package/lib/components/booking/components/footer/amount.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.js +25 -122
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +5 -244
- package/lib/components/booking/components/footer/utils.d.ts +1 -1
- package/lib/components/booking/components/footer/utils.js +22 -59
- package/lib/components/booking/components/voucher/index.js +4 -18
- package/lib/components/booking/components/voucher/index.less +1 -4
- package/lib/components/booking/components/voucherModal/index.less +0 -1
- package/lib/components/booking/dashboard/index.js +59 -38
- package/lib/components/booking/dashboard/serve.d.ts +0 -1
- package/lib/components/booking/dashboard/serve.js +2 -8
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/hooks/useQuotation.js +21 -65
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/client/index.js +8 -16
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Group/utils.js +2 -2
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +2 -6
- package/lib/components/booking/info2/cartClientCard/index.js +11 -17
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editNormalService/index.js +16 -20
- package/lib/components/booking/info2/service/editService/index.js +24 -48
- package/lib/components/booking/info2/service/editService/utils.js +4 -7
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/locales.d.ts +0 -3
- package/lib/components/booking/locales.js +3 -6
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/booking/utils.js +3 -3
- package/lib/components/checkout/PaymentModal.d.ts +0 -1
- package/lib/components/checkout/PaymentModal.js +30 -98
- package/lib/components/checkout/components/PaymentDetailModal/index.less +429 -426
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +2 -6
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +1 -0
- package/lib/components/checkout/components/PaymentResultToast/index.js +0 -2
- package/lib/components/checkout/components/WalletPassModule/index.js +0 -1
- package/lib/components/checkout/components/WalletPassModule/utils.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/utils.js +2 -18
- package/lib/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/lib/components/checkout/hooks/useWalletPass.js +109 -160
- package/lib/components/checkout/index.less +0 -6
- package/lib/components/checkout/plugin.js +150 -195
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/EFTPos.js +7 -11
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.js +0 -5
- package/lib/components/eftposPay/component/fail/failCustom.js +9 -15
- package/lib/components/eftposPay/component/fail/index.js +1 -4
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/const.d.ts +1 -6
- package/lib/components/eftposPay/const.js +0 -3
- package/lib/components/eftposPay/hooks.d.ts +2 -3
- package/lib/components/eftposPay/hooks.js +0 -16
- package/lib/components/eftposPay/index.js +1 -5
- package/lib/components/eftposPay/locales.d.ts +0 -36
- package/lib/components/eftposPay/locales.js +3 -42
- package/lib/components/eftposPay/manufacturer.d.ts +0 -1
- package/lib/components/eftposPay/manufacturer.js +0 -7
- package/lib/components/eftposPay/pay.js +2 -3
- package/lib/components/eftposPay/store/index.d.ts +5 -12
- package/lib/components/eftposPay/tyro/index.js +7 -64
- package/lib/components/eftposPay/windcave/windcave.js +9 -9
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +1 -2
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.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/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/kioskSkuDetail/index.d.ts +0 -3
- package/lib/components/kioskSkuDetail/index.js +113 -180
- package/lib/components/kioskSkuDetail/index.less +7 -49
- package/lib/components/kioskSkuDetail/locales.d.ts +0 -6
- package/lib/components/kioskSkuDetail/locales.js +3 -9
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/lib/components/pay/toB/components/EFTPOS/index.js +1 -8
- package/lib/components/pay/toB/components/MX51/index.js +1 -2
- package/lib/components/pay/toB/paymentMethods/index.js +1 -2
- package/lib/components/pay/toB/types/index.d.ts +0 -9
- package/lib/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/index.js +5 -36
- package/lib/components/pay/toC/PaymentList/index.less +1 -58
- package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +1 -21
- package/lib/components/pay/toC/PaymentList/utils.d.ts +0 -26
- package/lib/components/pay/toC/PaymentList/utils.js +7 -156
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -97
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +103 -90
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- 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 +1 -3
- package/lib/components/pay/toC/index.js +11 -53
- package/lib/components/pay/toC/locales.d.ts +0 -6
- package/lib/components/pay/toC/locales.js +3 -9
- package/lib/components/pay/toC/model.d.ts +1 -10
- package/lib/components/pay/toC/serve.d.ts +0 -18
- package/lib/components/pay/toC/serve.js +0 -6
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +0 -4
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.js +1 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/systemSettings/registry/components/SectionList.js +1 -4
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +7 -3
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +16 -46
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +2 -3
- package/lib/components/ticketBooking/components/ticketBooking/index.js +7 -21
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -3
- package/lib/components/ticketBooking/context/OsKeyContext.js +3 -13
- package/lib/components/ticketBooking/context/index.d.ts +1 -1
- package/lib/components/ticketBooking/context/index.js +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +2 -3
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +0 -59
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.js +1 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/walletList/index.js +1 -5
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/index.d.ts +4 -7
- package/lib/index.js +6 -15
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/index.d.ts +0 -1
- package/lib/plus/clinetSearch/index.js +7 -31
- package/lib/plus/clinetSearch/locales.d.ts +0 -3
- package/lib/plus/clinetSearch/locales.js +3 -6
- package/lib/plus/clinetSearch/types.d.ts +0 -9
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.d.ts +9 -0
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.js +188 -0
- package/lib/plus/myTeamLogin/index.d.ts +11 -0
- package/lib/plus/myTeamLogin/index.js +198 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/index.js +3 -3
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +4 -6
- package/lib/plus/productSelect/ProductList/gridComponents.js +1 -7
- package/lib/plus/productSelect/index.d.ts +1 -3
- package/lib/plus/productSelect/index.js +11 -56
- package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +0 -2
- package/lib/plus/skuOptionsSelection/locales.d.ts +0 -3
- package/lib/plus/skuOptionsSelection/locales.js +0 -3
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +0 -10
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +0 -10
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +0 -1
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +0 -2
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +0 -10
- package/lib/plus/walletPassGallery/components/passDetail/index.js +6 -24
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -2
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +10 -17
- package/lib/plus/walletPassGallery/index.js +2 -2
- package/lib/plus/walletPassGallery/index.less +1 -1
- package/lib/plus/walletPassGallery/serve.d.ts +0 -8
- package/lib/plus/walletPassGallery/serve.js +8 -23
- package/lib/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/lib/plus/webPosLogin/WebPosLogin.js +2 -7
- package/lib/plus/webPosLogin/components/LoginPanel/index.js +3 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/index.js +1 -1
- package/lib/plus/webPosLogin/components/MediaDisplay/index.less +6 -10
- package/lib/plus/webPosLogin/service.js +1 -2
- package/lib/pro/Login2.0/AuthModal.js +7 -15
- package/lib/pro/Login2.0/Login2.js +15 -21
- package/lib/pro/Login2.0/components/LoginCodeInput.js +4 -26
- package/lib/pro/Login2.0/index.less +3 -15
- package/lib/pro/Login2.0/shared/types.d.ts +4 -0
- package/lib/pro/Login2.0/steps/CodeInput.js +5 -27
- package/lib/pro/NumericStepper/index.d.ts +1 -27
- package/lib/pro/NumericStepper/index.js +70 -73
- package/lib/pro/NumericStepper/index.less +136 -261
- package/lib/pro/Selector/Selector.js +4 -11
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/lib/pro/Selector/hooks/usePresetProps.js +2 -4
- package/lib/pro/Selector/types.d.ts +0 -1
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellNumberSelector/example.js +93 -0
- package/lib/pro/pisellPaymentList/example.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +1 -2
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +1 -2
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +3 -6
- package/lib/pro/skuDetailModal/index.js +64 -117
- package/lib/pro/skuDetailModal/index.less +4 -46
- package/lib/pro/skuDetailModal/types.d.ts +0 -7
- package/lowcode/kiosk-sku-detail/meta.ts +94 -229
- package/lowcode/login2/meta.ts +20 -15
- package/lowcode/my-team-login/meta.ts +71 -0
- package/package.json +23 -8
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -3
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +0 -82
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
- package/es/components/ecocup/components/AddCustomerModal/index.js +0 -216
- package/es/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/es/components/ecocup/components/CupActionList/index.d.ts +0 -13
- package/es/components/ecocup/components/CupActionList/index.js +0 -91
- package/es/components/ecocup/components/CupActionList/index.less +0 -102
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupActionModal/hooks.js +0 -68
- package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -14
- package/es/components/ecocup/components/CupActionModal/index.js +0 -92
- package/es/components/ecocup/components/CupActionModal/index.less +0 -38
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -7
- package/es/components/ecocup/components/CupInfoCard/index.js +0 -12
- package/es/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupStatusModal/hooks.js +0 -68
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
- package/es/components/ecocup/components/CupStatusModal/index.js +0 -147
- package/es/components/ecocup/components/CupStatusModal/index.less +0 -35
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -133
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +0 -227
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -6
- package/es/components/ecocup/components/CustomerCard/index.js +0 -34
- package/es/components/ecocup/components/CustomerCard/index.less +0 -50
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -8
- package/es/components/ecocup/components/MoreDropdown/index.js +0 -33
- package/es/components/ecocup/components/PageHeader/index.d.ts +0 -6
- package/es/components/ecocup/components/PageHeader/index.js +0 -37
- package/es/components/ecocup/components/PageHeader/index.less +0 -19
- package/es/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/es/components/ecocup/components/SearchBar/const.js +0 -16
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/es/components/ecocup/components/SearchBar/hooks.js +0 -184
- package/es/components/ecocup/components/SearchBar/index.d.ts +0 -12
- package/es/components/ecocup/components/SearchBar/index.js +0 -218
- package/es/components/ecocup/components/SearchBar/index.less +0 -88
- package/es/components/ecocup/cupList/const.d.ts +0 -133
- package/es/components/ecocup/cupList/const.js +0 -306
- package/es/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/es/components/ecocup/cupList/hooks/index.js +0 -4
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
- package/es/components/ecocup/cupList/hooks/useColumns.js +0 -168
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -2
- package/es/components/ecocup/cupList/hooks/useSummary.js +0 -40
- package/es/components/ecocup/cupList/index.d.ts +0 -6
- package/es/components/ecocup/cupList/index.js +0 -220
- package/es/components/ecocup/cupList/index.less +0 -113
- package/es/components/ecocup/cupProject/const.d.ts +0 -7
- package/es/components/ecocup/cupProject/const.js +0 -27
- package/es/components/ecocup/cupProject/index.d.ts +0 -3
- package/es/components/ecocup/cupProject/index.js +0 -103
- package/es/components/ecocup/cupProject/index.less +0 -41
- package/es/components/ecocup/customerList/const.d.ts +0 -44
- package/es/components/ecocup/customerList/const.js +0 -67
- package/es/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/es/components/ecocup/customerList/hooks/index.js +0 -3
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useColumns.js +0 -44
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +0 -70
- package/es/components/ecocup/customerList/index.d.ts +0 -7
- package/es/components/ecocup/customerList/index.js +0 -127
- package/es/components/ecocup/customerList/index.less +0 -15
- package/es/components/ecocup/hooks.d.ts +0 -49
- package/es/components/ecocup/hooks.js +0 -151
- package/es/components/ecocup/locales.d.ts +0 -339
- package/es/components/ecocup/locales.js +0 -372
- package/es/components/ecocup/types.d.ts +0 -103
- package/es/components/ecocup/types.js +0 -36
- package/es/components/ecocup/utils/scanListener.d.ts +0 -20
- package/es/components/ecocup/utils/scanListener.js +0 -107
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +0 -7
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +0 -120
- package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/es/components/eftposPay/aggregatePayment/index.js +0 -3
- package/es/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/es/components/eftposPay/aggregatePayment/service.js +0 -69
- package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/es/components/eftposPay/aggregatePayment/types.js +0 -65
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +0 -371
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +0 -1138
- package/es/components/eftposPay/huifu/Action.d.ts +0 -8
- package/es/components/eftposPay/huifu/Action.js +0 -146
- package/es/components/eftposPay/huifu/const.d.ts +0 -5
- package/es/components/eftposPay/huifu/const.js +0 -70
- package/es/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/es/components/eftposPay/huifu/hooks.js +0 -184
- package/es/components/eftposPay/huifu/index.d.ts +0 -5
- package/es/components/eftposPay/huifu/index.js +0 -196
- package/es/components/eftposPay/huifu/index.less +0 -180
- package/es/components/eftposPay/huifu/types.d.ts +0 -14
- package/es/components/eftposPay/huifu/types.js +0 -1
- package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +0 -20
- package/es/components/eventBooking/components/Voucher/components/Voucher.js +0 -99
- package/es/components/eventBooking/components/Voucher/components/index.less +0 -124
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
- package/es/components/eventBooking/components/Voucher/components/locales.js +0 -38
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +0 -7
- package/es/components/eventBooking/components/Voucher/hooks.js +0 -212
- package/es/components/eventBooking/components/Voucher/index.d.ts +0 -2
- package/es/components/eventBooking/components/Voucher/index.js +0 -266
- package/es/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/es/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/es/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/es/plus/orderList/components/BatchActionBar.js +0 -835
- package/es/plus/orderList/components/FilterList.d.ts +0 -8
- package/es/plus/orderList/components/FilterList.js +0 -78
- package/es/plus/orderList/components/HandleActions.d.ts +0 -5
- package/es/plus/orderList/components/HandleActions.js +0 -27
- package/es/plus/orderList/components/QuickFilter.d.ts +0 -4
- package/es/plus/orderList/components/QuickFilter.js +0 -14
- package/es/plus/orderList/components/Reset.d.ts +0 -6
- package/es/plus/orderList/components/Reset.js +0 -23
- package/es/plus/orderList/components/Toolbar.d.ts +0 -6
- package/es/plus/orderList/components/Toolbar.js +0 -59
- package/es/plus/orderList/config.d.ts +0 -154
- package/es/plus/orderList/config.js +0 -786
- package/es/plus/orderList/index.d.ts +0 -10
- package/es/plus/orderList/index.js +0 -133
- package/es/plus/orderList/index.less +0 -125
- package/es/plus/orderList/locales.d.ts +0 -372
- package/es/plus/orderList/locales.js +0 -459
- package/es/plus/orderList/serve.d.ts +0 -42
- package/es/plus/orderList/serve.js +0 -351
- package/es/pro/keyboards/index.d.ts +0 -2
- package/es/pro/keyboards/index.js +0 -1
- package/es/pro/keyboards/locales.d.ts +0 -24
- package/es/pro/keyboards/locales.js +0 -35
- package/es/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/es/pro/keyboards/numberKeyboard/index.js +0 -523
- package/es/pro/keyboards/numberKeyboard/index.less +0 -59
- package/es/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/es/pro/keyboards/numberKeyboard/types.js +0 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -3
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +0 -89
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
- package/lib/components/ecocup/components/AddCustomerModal/index.js +0 -212
- package/lib/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -13
- package/lib/components/ecocup/components/CupActionList/index.js +0 -116
- package/lib/components/ecocup/components/CupActionList/index.less +0 -102
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupActionModal/hooks.js +0 -55
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -14
- package/lib/components/ecocup/components/CupActionModal/index.js +0 -125
- package/lib/components/ecocup/components/CupActionModal/index.less +0 -38
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -7
- package/lib/components/ecocup/components/CupInfoCard/index.js +0 -43
- package/lib/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +0 -55
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
- package/lib/components/ecocup/components/CupStatusModal/index.js +0 -140
- package/lib/components/ecocup/components/CupStatusModal/index.less +0 -35
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -89
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +0 -178
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -6
- package/lib/components/ecocup/components/CustomerCard/index.js +0 -48
- package/lib/components/ecocup/components/CustomerCard/index.less +0 -50
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -8
- package/lib/components/ecocup/components/MoreDropdown/index.js +0 -68
- package/lib/components/ecocup/components/PageHeader/index.d.ts +0 -6
- package/lib/components/ecocup/components/PageHeader/index.js +0 -59
- package/lib/components/ecocup/components/PageHeader/index.less +0 -19
- package/lib/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/lib/components/ecocup/components/SearchBar/const.js +0 -50
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/lib/components/ecocup/components/SearchBar/hooks.js +0 -135
- package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -12
- package/lib/components/ecocup/components/SearchBar/index.js +0 -213
- package/lib/components/ecocup/components/SearchBar/index.less +0 -88
- package/lib/components/ecocup/cupList/const.d.ts +0 -133
- package/lib/components/ecocup/cupList/const.js +0 -326
- package/lib/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/lib/components/ecocup/cupList/hooks/index.js +0 -39
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
- package/lib/components/ecocup/cupList/hooks/useColumns.js +0 -202
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +0 -112
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -2
- package/lib/components/ecocup/cupList/hooks/useSummary.js +0 -75
- package/lib/components/ecocup/cupList/index.d.ts +0 -6
- package/lib/components/ecocup/cupList/index.js +0 -208
- package/lib/components/ecocup/cupList/index.less +0 -113
- package/lib/components/ecocup/cupProject/const.d.ts +0 -7
- package/lib/components/ecocup/cupProject/const.js +0 -58
- package/lib/components/ecocup/cupProject/index.d.ts +0 -3
- package/lib/components/ecocup/cupProject/index.js +0 -126
- package/lib/components/ecocup/cupProject/index.less +0 -41
- package/lib/components/ecocup/customerList/const.d.ts +0 -44
- package/lib/components/ecocup/customerList/const.js +0 -93
- package/lib/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/lib/components/ecocup/customerList/hooks/index.js +0 -32
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useColumns.js +0 -89
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +0 -56
- package/lib/components/ecocup/customerList/index.d.ts +0 -7
- package/lib/components/ecocup/customerList/index.js +0 -138
- package/lib/components/ecocup/customerList/index.less +0 -15
- package/lib/components/ecocup/hooks.d.ts +0 -49
- package/lib/components/ecocup/hooks.js +0 -155
- package/lib/components/ecocup/locales.d.ts +0 -339
- package/lib/components/ecocup/locales.js +0 -389
- package/lib/components/ecocup/types.d.ts +0 -103
- package/lib/components/ecocup/types.js +0 -57
- package/lib/components/ecocup/utils/scanListener.d.ts +0 -20
- package/lib/components/ecocup/utils/scanListener.js +0 -90
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +0 -7
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +0 -133
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/lib/components/eftposPay/aggregatePayment/index.js +0 -42
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/lib/components/eftposPay/aggregatePayment/service.js +0 -81
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/lib/components/eftposPay/aggregatePayment/types.js +0 -74
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +0 -294
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +0 -752
- package/lib/components/eftposPay/huifu/Action.d.ts +0 -8
- package/lib/components/eftposPay/huifu/Action.js +0 -174
- package/lib/components/eftposPay/huifu/const.d.ts +0 -5
- package/lib/components/eftposPay/huifu/const.js +0 -86
- package/lib/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/lib/components/eftposPay/huifu/hooks.js +0 -186
- package/lib/components/eftposPay/huifu/index.d.ts +0 -5
- package/lib/components/eftposPay/huifu/index.js +0 -200
- package/lib/components/eftposPay/huifu/index.less +0 -180
- package/lib/components/eftposPay/huifu/types.d.ts +0 -14
- package/lib/components/eftposPay/huifu/types.js +0 -17
- package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +0 -20
- package/lib/components/eventBooking/components/Voucher/components/Voucher.js +0 -116
- package/lib/components/eventBooking/components/Voucher/components/index.less +0 -124
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
- package/lib/components/eventBooking/components/Voucher/components/locales.js +0 -59
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +0 -7
- package/lib/components/eventBooking/components/Voucher/hooks.js +0 -176
- package/lib/components/eventBooking/components/Voucher/index.d.ts +0 -2
- package/lib/components/eventBooking/components/Voucher/index.js +0 -197
- package/lib/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/lib/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/lib/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/lib/plus/orderList/components/BatchActionBar.js +0 -567
- package/lib/plus/orderList/components/FilterList.d.ts +0 -8
- package/lib/plus/orderList/components/FilterList.js +0 -121
- package/lib/plus/orderList/components/HandleActions.d.ts +0 -5
- package/lib/plus/orderList/components/HandleActions.js +0 -52
- package/lib/plus/orderList/components/QuickFilter.d.ts +0 -4
- package/lib/plus/orderList/components/QuickFilter.js +0 -43
- package/lib/plus/orderList/components/Reset.d.ts +0 -6
- package/lib/plus/orderList/components/Reset.js +0 -58
- package/lib/plus/orderList/components/Toolbar.d.ts +0 -6
- package/lib/plus/orderList/components/Toolbar.js +0 -68
- package/lib/plus/orderList/config.d.ts +0 -154
- package/lib/plus/orderList/config.js +0 -766
- package/lib/plus/orderList/index.d.ts +0 -10
- package/lib/plus/orderList/index.js +0 -132
- package/lib/plus/orderList/index.less +0 -125
- package/lib/plus/orderList/locales.d.ts +0 -372
- package/lib/plus/orderList/locales.js +0 -471
- package/lib/plus/orderList/serve.d.ts +0 -42
- package/lib/plus/orderList/serve.js +0 -177
- package/lib/pro/keyboards/index.d.ts +0 -2
- package/lib/pro/keyboards/index.js +0 -39
- package/lib/pro/keyboards/locales.d.ts +0 -24
- package/lib/pro/keyboards/locales.js +0 -47
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/lib/pro/keyboards/numberKeyboard/index.js +0 -400
- package/lib/pro/keyboards/numberKeyboard/index.less +0 -59
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/lib/pro/keyboards/numberKeyboard/types.js +0 -17
- package/lowcode/eco-cup-list/meta.ts +0 -63
- package/lowcode/eco-customer-list/meta.ts +0 -63
- package/lowcode/ecocup-cup-list/meta.ts +0 -38
- package/lowcode/ecocup-cup-project/meta.ts +0 -35
- package/lowcode/ecocup-customer-list/meta.ts +0 -38
- package/lowcode/order-list/meta.ts +0 -87
|
@@ -47,8 +47,7 @@ var SHOW_METHODS_CODE = [
|
|
|
47
47
|
"EFTPOS",
|
|
48
48
|
"EFTPOS_TYRO",
|
|
49
49
|
"EFTPOS_WINDCAVE",
|
|
50
|
-
"EFTPOS_PAYO"
|
|
51
|
-
"EFTPOS_HUIFU"
|
|
50
|
+
"EFTPOS_PAYO"
|
|
52
51
|
];
|
|
53
52
|
function PaymentOptionsModule({
|
|
54
53
|
amountSymbol,
|
|
@@ -77,10 +76,7 @@ function PaymentOptionsModule({
|
|
|
77
76
|
};
|
|
78
77
|
const displayTitle = typeof title === "string" ? title : title ? String(title) : getText("cards.and.digitals", "Cards & Digitals");
|
|
79
78
|
const filteredPaymentMethods = paymentMethods.filter(
|
|
80
|
-
(item) =>
|
|
81
|
-
var _a2;
|
|
82
|
-
return !(item.type === "app" && item.code === "EFTPOS_LINKLY") && ((_a2 = item.channel_application) == null ? void 0 : _a2.includes("pos")) && (["custom"].includes(item.type) || SHOW_METHODS_CODE.includes(item.code));
|
|
83
|
-
}
|
|
79
|
+
(item) => !(item.type === "app" && item.code === "EFTPOS_LINKLY") && (["custom"].includes(item.type) || SHOW_METHODS_CODE.includes(item.code))
|
|
84
80
|
);
|
|
85
81
|
const { run: handlePaymentClick } = (0, import_ahooks.useDebounceFn)(
|
|
86
82
|
(method) => {
|
|
@@ -259,6 +259,7 @@ var GlobalToastManager = class {
|
|
|
259
259
|
if (config.mask) {
|
|
260
260
|
container.setAttribute("data-mask", "true");
|
|
261
261
|
}
|
|
262
|
+
debugger;
|
|
262
263
|
const dynamicBottomOffset = this.calculateAndCacheBottomOffset();
|
|
263
264
|
container.style.position = "fixed";
|
|
264
265
|
if (config.mask) {
|
|
@@ -153,10 +153,8 @@ var PaymentResultToast = (0, import_react.memo)((props) => {
|
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
document.addEventListener("mousedown", handleClickOutside);
|
|
156
|
-
document.addEventListener("pointerup", handleClickOutside);
|
|
157
156
|
return () => {
|
|
158
157
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
159
|
-
document.removeEventListener("pointerup", handleClickOutside);
|
|
160
158
|
};
|
|
161
159
|
}, [clickOutsideToClose, visible, clearCountdown]);
|
|
162
160
|
const handleClose = (0, import_react.useCallback)(() => {
|
|
@@ -68,7 +68,6 @@ var WalletPassModule = (0, import_react.forwardRef)(
|
|
|
68
68
|
} = (0, import_useWalletPass.useWalletPass)({
|
|
69
69
|
onSelectChange,
|
|
70
70
|
customAmount,
|
|
71
|
-
totalAmount: Number(orderInfo == null ? void 0 : orderInfo.totalAmount) || 0,
|
|
72
71
|
clientId
|
|
73
72
|
});
|
|
74
73
|
const [expiredModalVisible, setExpiredModalVisible] = (0, import_react.useState)(false);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare type WalletPassDataType = Record<string, any>;
|
|
2
2
|
export declare const getAvailableMaxAmount: (data: WalletPassDataType) => any;
|
|
3
3
|
export declare const voucherTime: (data: WalletPassDataType, key?: string) => any;
|
|
4
|
-
export declare const getVoucherAvailableStatus: (item: any) => boolean;
|
|
5
4
|
export declare const formatMachineCodeServer2CardList: (data: WalletPassDataType[], selectId?: number[], otherProps?: Record<string, any>) => any;
|
|
6
5
|
export declare const formatDiscountWalletData: (data: any, selectId?: number[]) => any;
|
|
7
6
|
export interface WalletPassUsageUnit {
|
|
@@ -33,7 +33,6 @@ __export(utils_exports, {
|
|
|
33
33
|
formatMachineCodeServer2CardList: () => formatMachineCodeServer2CardList,
|
|
34
34
|
getAvailableMaxAmount: () => getAvailableMaxAmount,
|
|
35
35
|
getPointCardAmount: () => getPointCardAmount,
|
|
36
|
-
getVoucherAvailableStatus: () => getVoucherAvailableStatus,
|
|
37
36
|
isSameContent: () => isSameContent,
|
|
38
37
|
voucherTime: () => voucherTime
|
|
39
38
|
});
|
|
@@ -44,9 +43,6 @@ var import_materials = require("@pisell/materials");
|
|
|
44
43
|
var import_decimal = __toESM(require("decimal.js"));
|
|
45
44
|
var Amount = import_materials.PisellText.Amount;
|
|
46
45
|
var getAvailableMaxAmount = (data) => {
|
|
47
|
-
if ((0, import_utils.isNumber)(data._available_max_amount)) {
|
|
48
|
-
return data._available_max_amount;
|
|
49
|
-
}
|
|
50
46
|
return data.tag !== "point_card" ? data.available_max_amount : data == null ? void 0 : data.recommended_usage_amount;
|
|
51
47
|
};
|
|
52
48
|
var voucherTime = (data, key = "expire_date") => {
|
|
@@ -59,20 +55,9 @@ var voucherTime = (data, key = "expire_date") => {
|
|
|
59
55
|
}
|
|
60
56
|
return import_utils.locales.getText("pisell2.text.walletPassPermanent");
|
|
61
57
|
};
|
|
62
|
-
var getVoucherAvailableStatus = (item) => {
|
|
63
|
-
return item.unified_available_status === 1 && ((0, import_utils.isNumber)(item._unified_available_status) ? !!item._unified_available_status : true);
|
|
64
|
-
};
|
|
65
58
|
var formatMachineCodeServer2CardList = (data, selectId = [], otherProps = {}) => {
|
|
66
59
|
return (data || []).map((item) => {
|
|
67
60
|
var _a, _b;
|
|
68
|
-
let disabled = false;
|
|
69
|
-
if (item.unified_available_status === 0) {
|
|
70
|
-
disabled = true;
|
|
71
|
-
} else {
|
|
72
|
-
if ((0, import_utils.isNumber)(item._unified_available_status)) {
|
|
73
|
-
disabled = !item._unified_available_status;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
61
|
return {
|
|
77
62
|
id: item.id,
|
|
78
63
|
name: item.product_name,
|
|
@@ -89,8 +74,8 @@ var formatMachineCodeServer2CardList = (data, selectId = [], otherProps = {}) =>
|
|
|
89
74
|
showQrCode: false,
|
|
90
75
|
showStatus: true,
|
|
91
76
|
code: item.code,
|
|
92
|
-
disabled,
|
|
93
|
-
disabledReason: (
|
|
77
|
+
disabled: !item.unified_available_status,
|
|
78
|
+
disabledReason: (_a = item.unified_messages) == null ? void 0 : _a.title,
|
|
94
79
|
cover: (_b = item.product) == null ? void 0 : _b.cover,
|
|
95
80
|
qrCode: item.code,
|
|
96
81
|
validDate: voucherTime(item),
|
|
@@ -168,7 +153,6 @@ var isSameContent = (arr1, arr2) => {
|
|
|
168
153
|
formatMachineCodeServer2CardList,
|
|
169
154
|
getAvailableMaxAmount,
|
|
170
155
|
getPointCardAmount,
|
|
171
|
-
getVoucherAvailableStatus,
|
|
172
156
|
isSameContent,
|
|
173
157
|
voucherTime
|
|
174
158
|
});
|
|
@@ -9,7 +9,6 @@ export declare const useWalletPass: (props: {
|
|
|
9
9
|
}[]) => void) | undefined;
|
|
10
10
|
customAmount?: string | undefined;
|
|
11
11
|
clientId?: number | undefined;
|
|
12
|
-
totalAmount?: number | undefined;
|
|
13
12
|
}) => {
|
|
14
13
|
walletRecommendList: any[];
|
|
15
14
|
userIdentificationCodes: any[];
|
|
@@ -18,7 +17,7 @@ export declare const useWalletPass: (props: {
|
|
|
18
17
|
cardData: any;
|
|
19
18
|
handleSelectWallet: (value: number[]) => void;
|
|
20
19
|
selectedWalletIds: any[];
|
|
21
|
-
expiredWalletIds: any
|
|
20
|
+
expiredWalletIds: any;
|
|
22
21
|
expiredWalletData: any;
|
|
23
22
|
disabledWalletData: any[];
|
|
24
23
|
clearAllSelectedWallet: () => void;
|
|
@@ -30,6 +29,7 @@ export declare const useWalletPass: (props: {
|
|
|
30
29
|
selectedDiscountList: any;
|
|
31
30
|
handleSelectDiscount: (value: number[], option: any) => void;
|
|
32
31
|
customerName: any;
|
|
32
|
+
fetchWalletRecommendList: (params: any) => Promise<any>;
|
|
33
33
|
fetchUserIdentificationCodes: (params: any) => Promise<any>;
|
|
34
34
|
getCachedWalletRecommendList: () => any;
|
|
35
35
|
getCachedUserIdentificationCodes: () => any;
|
|
@@ -44,27 +44,24 @@ var import_utils3 = require("../../booking/utils");
|
|
|
44
44
|
var import_pisellos = require("../../ticketBooking/hooks/pisellos");
|
|
45
45
|
var import_useShopDiscountModule = require("../../ticketBooking/hooks/pisellos/useShopDiscountModule");
|
|
46
46
|
var useWalletPass = (props) => {
|
|
47
|
-
const { onSelectChange, customAmount, clientId
|
|
47
|
+
const { onSelectChange, customAmount, clientId } = props;
|
|
48
48
|
const logger = (0, import_usePaymentLogger.default)();
|
|
49
49
|
const { executeIfActive } = (0, import_pisellos.useActiveExecute)();
|
|
50
50
|
const [walletRecommendList, setWalletRecommendList] = (0, import_react.useState)([]);
|
|
51
51
|
const [userIdentificationCodes, setUserIdentificationCodes] = (0, import_react.useState)(
|
|
52
52
|
[]
|
|
53
53
|
);
|
|
54
|
-
const [transformList, setTransformList] = (0, import_react.useState)([]);
|
|
55
|
-
const [noApplicableVoucher, setNoApplicableVoucher] = (0, import_react.useState)([]);
|
|
56
54
|
const initialOrderedDataRef = (0, import_react.useRef)([]);
|
|
57
55
|
const initialDiscountOrderRef = (0, import_react.useRef)([]);
|
|
58
56
|
const confirmedEditAmountIdsRef = (0, import_react.useRef)([]);
|
|
57
|
+
const timeoutRef = (0, import_react.useRef)(null);
|
|
59
58
|
const [searchIdentificationCodeList, setSearchIdentificationCodeList] = (0, import_react.useState)([]);
|
|
60
59
|
const [orderInfo, setOrderInfo] = (0, import_react.useState)({});
|
|
61
60
|
const [selectedWallet, setSelectedWallet] = (0, import_react.useState)([]);
|
|
62
61
|
const selectedWalletRef = (0, import_react.useRef)([]);
|
|
63
|
-
const [selectedVoucherIds, setSelectedVoucherIds] = (0, import_react.useState)([]);
|
|
64
62
|
const [disabledWalletData, setDisabledWalletData] = (0, import_react.useState)([]);
|
|
65
63
|
const notSetWalletSelectRef = (0, import_react.useRef)(false);
|
|
66
64
|
const showBestToastRef = (0, import_react.useRef)(false);
|
|
67
|
-
const [products, setProducts] = (0, import_react.useState)([]);
|
|
68
65
|
const selectedWalletIds = (0, import_react.useMemo)(() => {
|
|
69
66
|
return selectedWallet.map((item) => item.id);
|
|
70
67
|
}, [selectedWallet]);
|
|
@@ -76,10 +73,6 @@ var useWalletPass = (props) => {
|
|
|
76
73
|
const checkoutModule = pisellos.getModule("checkout");
|
|
77
74
|
const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
|
|
78
75
|
const paymentModule = checkoutModule == null ? void 0 : checkoutModule.payment;
|
|
79
|
-
const walletPassEvaluator = (0, import_react.useMemo)(() => {
|
|
80
|
-
var _a, _b;
|
|
81
|
-
return (_b = (_a = paymentModule == null ? void 0 : paymentModule.window) == null ? void 0 : _a.getWalletPassEvaluator) == null ? void 0 : _b.call(_a);
|
|
82
|
-
}, []);
|
|
83
76
|
const setWalletSelect = (0, import_ahooks.useMemoizedFn)((data2) => {
|
|
84
77
|
setSelectedWallet(data2);
|
|
85
78
|
selectedWalletRef.current = data2;
|
|
@@ -170,61 +163,34 @@ var useWalletPass = (props) => {
|
|
|
170
163
|
return orderedResult;
|
|
171
164
|
}
|
|
172
165
|
);
|
|
173
|
-
const allVouchersForCalculation = (0, import_react.useMemo)(() => {
|
|
174
|
-
return [...transformList || [], ...searchIdentificationCodeList || []];
|
|
175
|
-
}, [transformList, searchIdentificationCodeList]);
|
|
176
|
-
const selectedVouchers = (0, import_react.useMemo)(() => {
|
|
177
|
-
return selectedVoucherIds.map((id) => allVouchersForCalculation.find((v) => v.id === id)).filter(Boolean);
|
|
178
|
-
}, [selectedVoucherIds, allVouchersForCalculation]);
|
|
179
|
-
const { displayVouchers, displayOtherVouchers, selectedWithDetails, totalDeduction } = (0, import_react.useMemo)(() => {
|
|
180
|
-
if (!walletPassEvaluator || !allVouchersForCalculation.length || !totalAmount) {
|
|
181
|
-
return {
|
|
182
|
-
displayVouchers: [...transformList || [], ...noApplicableVoucher || []],
|
|
183
|
-
displayOtherVouchers: searchIdentificationCodeList || [],
|
|
184
|
-
selectedWithDetails: [],
|
|
185
|
-
totalDeduction: 0
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
const result = walletPassEvaluator.recalculateVouchers(
|
|
189
|
-
allVouchersForCalculation,
|
|
190
|
-
selectedVouchers,
|
|
191
|
-
totalAmount,
|
|
192
|
-
products || []
|
|
193
|
-
);
|
|
194
|
-
const currentCustomerVouchers = [];
|
|
195
|
-
const otherCustomerVouchers = [];
|
|
196
|
-
result.allWithUpdatedStatus.forEach((voucher) => {
|
|
197
|
-
const isSearchVoucher = searchIdentificationCodeList.some((item) => item.id === voucher.id);
|
|
198
|
-
if (isSearchVoucher) {
|
|
199
|
-
otherCustomerVouchers.push(voucher);
|
|
200
|
-
} else {
|
|
201
|
-
currentCustomerVouchers.push(voucher);
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
return {
|
|
205
|
-
displayVouchers: [...currentCustomerVouchers, ...noApplicableVoucher || []],
|
|
206
|
-
displayOtherVouchers: otherCustomerVouchers,
|
|
207
|
-
selectedWithDetails: result.selectedWithDetails,
|
|
208
|
-
totalDeduction: result.selectedWithDetails.reduce((sum, v) => sum + (v.actualDeduction || 0), 0)
|
|
209
|
-
};
|
|
210
|
-
}, [selectedVouchers, allVouchersForCalculation, transformList, searchIdentificationCodeList, noApplicableVoucher, totalAmount, products]);
|
|
211
|
-
(0, import_ahooks.useUpdateEffect)(() => {
|
|
212
|
-
notifySelectChange(selectedWithDetails);
|
|
213
|
-
setLoading(false);
|
|
214
|
-
}, [selectedWithDetails]);
|
|
215
166
|
const data = (0, import_react.useMemo)(() => {
|
|
216
167
|
return (0, import_utils2.formatMachineCodeServer2CardList)(
|
|
217
168
|
(0, import_utils.uniqueByKey)(
|
|
218
169
|
mergeDataWithInitialOrder([
|
|
219
170
|
...selectedWallet,
|
|
220
|
-
...
|
|
221
|
-
...displayOtherVouchers
|
|
171
|
+
...userIdentificationCodes
|
|
222
172
|
]),
|
|
223
173
|
"id"
|
|
224
174
|
),
|
|
225
|
-
|
|
175
|
+
selectedWalletIds
|
|
226
176
|
);
|
|
227
|
-
}, [
|
|
177
|
+
}, [userIdentificationCodes, selectedWalletIds, selectedWallet]);
|
|
178
|
+
const fetchWalletRecommendList = (0, import_ahooks.useMemoizedFn)(async (params) => {
|
|
179
|
+
setLoading(true);
|
|
180
|
+
setError(null);
|
|
181
|
+
try {
|
|
182
|
+
const result = await paymentModule.wallet.getWalletPassRecommendListAsync(
|
|
183
|
+
params
|
|
184
|
+
);
|
|
185
|
+
setWalletRecommendList(result);
|
|
186
|
+
return result;
|
|
187
|
+
} catch (err) {
|
|
188
|
+
setError(err instanceof Error ? err.message : "获取钱包推荐列表失败");
|
|
189
|
+
throw err;
|
|
190
|
+
} finally {
|
|
191
|
+
setLoading(false);
|
|
192
|
+
}
|
|
193
|
+
});
|
|
228
194
|
const fetchUserIdentificationCodes = (0, import_ahooks.useMemoizedFn)(async (params) => {
|
|
229
195
|
setLoading(true);
|
|
230
196
|
setError(null);
|
|
@@ -267,75 +233,43 @@ var useWalletPass = (props) => {
|
|
|
267
233
|
});
|
|
268
234
|
const handleSearchIdentificationCodeCompleted = (0, import_ahooks.useMemoizedFn)((data2) => {
|
|
269
235
|
const { currentSearchResults, cachedSearchResults } = data2;
|
|
270
|
-
let formattedResults = currentSearchResults;
|
|
271
|
-
if (walletPassEvaluator && currentSearchResults.length > 0 && totalAmount) {
|
|
272
|
-
formattedResults = walletPassEvaluator.searchVoucherFormat({
|
|
273
|
-
vouchers: currentSearchResults,
|
|
274
|
-
orderTotalAmount: totalAmount,
|
|
275
|
-
products: products || []
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
let formattedCachedResults = cachedSearchResults || [];
|
|
279
|
-
if (walletPassEvaluator && cachedSearchResults && cachedSearchResults.length > 0 && totalAmount) {
|
|
280
|
-
formattedCachedResults = walletPassEvaluator.searchVoucherFormat({
|
|
281
|
-
vouchers: cachedSearchResults,
|
|
282
|
-
orderTotalAmount: totalAmount,
|
|
283
|
-
products: products || []
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
const mergedSearchResults = (0, import_utils.uniqueByKey)(
|
|
287
|
-
[...formattedCachedResults || [], ...formattedResults],
|
|
288
|
-
"id"
|
|
289
|
-
);
|
|
290
236
|
let isAvailableData = [];
|
|
291
237
|
let isDisabledData = [];
|
|
292
|
-
if (
|
|
293
|
-
|
|
294
|
-
if (
|
|
238
|
+
if (currentSearchResults.length > 0) {
|
|
239
|
+
currentSearchResults.forEach((item) => {
|
|
240
|
+
if (!!item.unified_available_status) {
|
|
295
241
|
isAvailableData.push(item);
|
|
296
242
|
} else {
|
|
297
243
|
isDisabledData.push(item);
|
|
298
244
|
}
|
|
299
245
|
});
|
|
300
246
|
}
|
|
301
|
-
|
|
302
|
-
const allDisabledData = mergedSearchResults.filter((item) => !(0, import_utils2.getVoucherAvailableStatus)(item));
|
|
303
|
-
setDisabledWalletData(allDisabledData);
|
|
247
|
+
setDisabledWalletData(isDisabledData);
|
|
304
248
|
let newValues = [...selectedWalletRef.current];
|
|
305
249
|
if (isAvailableData.length === 1) {
|
|
306
250
|
newValues = [...selectedWalletRef.current, ...isAvailableData];
|
|
307
251
|
}
|
|
308
|
-
setSearchIdentificationCodeList(
|
|
309
|
-
setNoApplicableVoucher(allDisabledData);
|
|
252
|
+
setSearchIdentificationCodeList(cachedSearchResults);
|
|
310
253
|
setWalletSelect(newValues);
|
|
311
|
-
|
|
254
|
+
setTimeout(() => {
|
|
255
|
+
handleFetchUserIdentificationCodes(newValues.map((item) => item.id));
|
|
256
|
+
}, 200);
|
|
312
257
|
});
|
|
313
258
|
const onOrderCreated = (0, import_ahooks.useMemoizedFn)(() => {
|
|
314
|
-
var _a, _b;
|
|
315
259
|
const orderInfo2 = checkoutModule.getOrderOriginalData();
|
|
316
260
|
setOrderInfo(orderInfo2);
|
|
317
261
|
const recommendList = getCachedWalletRecommendList();
|
|
318
262
|
const userIdentificationCodes2 = getCachedUserIdentificationCodes();
|
|
319
|
-
const walletInitData = ((_b = (_a = paymentModule == null ? void 0 : paymentModule.wallet) == null ? void 0 : _a.getStoredWalletInitData) == null ? void 0 : _b.call(_a)) || {};
|
|
320
|
-
const transformListData = walletInitData.transformList || userIdentificationCodes2;
|
|
321
|
-
const noApplicableVoucherData = walletInitData.noApplicableVoucher || [];
|
|
322
|
-
const productsData = walletInitData.products || [];
|
|
323
263
|
const initialData = [...recommendList, ...userIdentificationCodes2];
|
|
324
264
|
setWalletRecommendList(recommendList);
|
|
325
|
-
setUserIdentificationCodes(
|
|
326
|
-
setTransformList(transformListData);
|
|
327
|
-
setNoApplicableVoucher(noApplicableVoucherData);
|
|
328
|
-
setProducts(productsData);
|
|
265
|
+
setUserIdentificationCodes(initialData);
|
|
329
266
|
initialOrderedDataRef.current = initialData;
|
|
330
267
|
if (!notSetWalletSelectRef.current) {
|
|
331
268
|
setWalletSelect(recommendList);
|
|
332
|
-
setSelectedVoucherIds(recommendList.map((item) => item.id));
|
|
333
269
|
const select = paymentModule.wallet.formatWalletPassList2PreparePayments(recommendList).map((item) => ({
|
|
334
270
|
code: item.tag,
|
|
335
271
|
voucher_id: item.voucher_id,
|
|
336
|
-
amount: item.amount || 0
|
|
337
|
-
wallet_pass_usage_unit: item.wallet_pass_usage_unit,
|
|
338
|
-
wallet_pass_use_value: item.wallet_pass_use_value
|
|
272
|
+
amount: item.amount || 0
|
|
339
273
|
}));
|
|
340
274
|
logger == null ? void 0 : logger.addLog({
|
|
341
275
|
type: "info",
|
|
@@ -345,7 +279,6 @@ var useWalletPass = (props) => {
|
|
|
345
279
|
onSelectChange == null ? void 0 : onSelectChange(select);
|
|
346
280
|
} else {
|
|
347
281
|
setWalletSelect([]);
|
|
348
|
-
setSelectedVoucherIds([]);
|
|
349
282
|
notSetWalletSelectRef.current = false;
|
|
350
283
|
onSelectChange == null ? void 0 : onSelectChange([]);
|
|
351
284
|
}
|
|
@@ -383,7 +316,7 @@ var useWalletPass = (props) => {
|
|
|
383
316
|
});
|
|
384
317
|
const handlePaymentStarted = (0, import_ahooks.useMemoizedFn)(
|
|
385
318
|
async (params) => {
|
|
386
|
-
if (params.paymentMethodCode !== "VOUCHER_BATCH"
|
|
319
|
+
if (params.paymentMethodCode !== "VOUCHER_BATCH") {
|
|
387
320
|
notSetWalletSelectRef.current = true;
|
|
388
321
|
await checkoutModule.initWalletData({
|
|
389
322
|
order_wait_pay_amount: Number(customAmount)
|
|
@@ -465,6 +398,14 @@ var useWalletPass = (props) => {
|
|
|
465
398
|
);
|
|
466
399
|
};
|
|
467
400
|
}, [paymentModule]);
|
|
401
|
+
(0, import_react.useEffect)(() => {
|
|
402
|
+
return () => {
|
|
403
|
+
if (timeoutRef.current) {
|
|
404
|
+
clearTimeout(timeoutRef.current);
|
|
405
|
+
timeoutRef.current = null;
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
}, []);
|
|
468
409
|
const allList = (0, import_react.useMemo)(() => {
|
|
469
410
|
const reversedSearchData = [...searchIdentificationCodeList].reverse();
|
|
470
411
|
return [
|
|
@@ -484,22 +425,31 @@ var useWalletPass = (props) => {
|
|
|
484
425
|
)
|
|
485
426
|
).map((item) => item.code);
|
|
486
427
|
});
|
|
487
|
-
const
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
428
|
+
const handleFetchUserIdentificationCodes = (0, import_ahooks.useMemoizedFn)(
|
|
429
|
+
(value, walletRecommendList2) => {
|
|
430
|
+
const val = (0, import_utils.uniqueByKey)(walletRecommendList2 || allList, "id").filter(
|
|
431
|
+
(item) => value.includes(item.id)
|
|
432
|
+
);
|
|
433
|
+
const prepare_payments = paymentModule.wallet.formatWalletPassList2PreparePayments(val);
|
|
434
|
+
const select = prepare_payments.map((item) => ({
|
|
435
|
+
voucher_id: item.voucher_id,
|
|
436
|
+
amount: item.amount,
|
|
437
|
+
code: item.tag
|
|
438
|
+
}));
|
|
439
|
+
logger == null ? void 0 : logger.addLog({
|
|
440
|
+
type: "info",
|
|
441
|
+
title: "useWalletPass_handleFetchUserIdentificationCodes onSelectChange 开始调用",
|
|
442
|
+
metadata: {}
|
|
443
|
+
});
|
|
444
|
+
onSelectChange == null ? void 0 : onSelectChange(select);
|
|
445
|
+
fetchUserIdentificationCodes({
|
|
446
|
+
prepare_payments,
|
|
447
|
+
available: 2,
|
|
448
|
+
filter_prepare_wallet_pass: 1,
|
|
449
|
+
other_exact_codes: getOtherExactCodes()
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
);
|
|
503
453
|
const handleSearchIdentificationCode = (0, import_ahooks.useMemoizedFn)((value) => {
|
|
504
454
|
return paymentModule.wallet.searchIdentificationCodeAsync({
|
|
505
455
|
code: value,
|
|
@@ -509,27 +459,11 @@ var useWalletPass = (props) => {
|
|
|
509
459
|
});
|
|
510
460
|
});
|
|
511
461
|
const handleSelectWallet = (0, import_ahooks.useMemoizedFn)((value) => {
|
|
512
|
-
|
|
513
|
-
const deselectedIds = selectedVoucherIds.filter(
|
|
514
|
-
(id) => !value.includes(id)
|
|
515
|
-
);
|
|
516
|
-
if (deselectedIds.length > 0) {
|
|
517
|
-
const needResetIds = deselectedIds.filter((id) => {
|
|
518
|
-
const voucher = allVouchersForCalculation.find((v) => v.id === id);
|
|
519
|
-
return (voucher == null ? void 0 : voucher.edit_current_amount) !== void 0;
|
|
520
|
-
});
|
|
521
|
-
if (needResetIds.length > 0) {
|
|
522
|
-
updateWalletDataById(needResetIds, { edit_current_amount: void 0 });
|
|
523
|
-
confirmedEditAmountIdsRef.current = confirmedEditAmountIdsRef.current.filter(
|
|
524
|
-
(id) => !needResetIds.includes(id)
|
|
525
|
-
);
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
setSelectedVoucherIds(value);
|
|
529
|
-
const val = allVouchersForCalculation.filter(
|
|
462
|
+
const val = userIdentificationCodes.filter(
|
|
530
463
|
(item) => value.includes(item.id)
|
|
531
464
|
);
|
|
532
465
|
setWalletSelect(val);
|
|
466
|
+
handleFetchUserIdentificationCodes(value);
|
|
533
467
|
});
|
|
534
468
|
const expiredWalletIds = (0, import_react.useMemo)(() => {
|
|
535
469
|
return (0, import_utils.uniqueByKey)(allList, "id").filter(
|
|
@@ -547,12 +481,12 @@ var useWalletPass = (props) => {
|
|
|
547
481
|
}, [allList]);
|
|
548
482
|
const clearAllSelectedWallet = (0, import_ahooks.useMemoizedFn)(() => {
|
|
549
483
|
var _a;
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
|
|
484
|
+
logger == null ? void 0 : logger.addLog({
|
|
485
|
+
type: "info",
|
|
486
|
+
title: "useWalletPass_clearAllSelectedWallet onSelectChange 开始调用",
|
|
487
|
+
metadata: {}
|
|
488
|
+
});
|
|
489
|
+
onSelectChange == null ? void 0 : onSelectChange([]);
|
|
556
490
|
if (selectedWalletIds.length === 0 && selectedDiscountList.length === 0) {
|
|
557
491
|
return;
|
|
558
492
|
}
|
|
@@ -576,14 +510,7 @@ var useWalletPass = (props) => {
|
|
|
576
510
|
return;
|
|
577
511
|
}
|
|
578
512
|
setWalletSelect([]);
|
|
579
|
-
|
|
580
|
-
logger == null ? void 0 : logger.addLog({
|
|
581
|
-
type: "info",
|
|
582
|
-
title: "useWalletPass_clearAllSelectedWallet 立即通知外部清空",
|
|
583
|
-
metadata: {}
|
|
584
|
-
});
|
|
585
|
-
onSelectChange == null ? void 0 : onSelectChange([]);
|
|
586
|
-
setLoading(false);
|
|
513
|
+
handleFetchUserIdentificationCodes([]);
|
|
587
514
|
});
|
|
588
515
|
const isCurrentSelectionBest = (0, import_ahooks.useMemoizedFn)(() => {
|
|
589
516
|
if (walletRecommendList.length === 0) return true;
|
|
@@ -630,9 +557,12 @@ var useWalletPass = (props) => {
|
|
|
630
557
|
import_utils.locales.getText("wallet-pass-module-already-best-combination")
|
|
631
558
|
);
|
|
632
559
|
} else {
|
|
633
|
-
const select = searchIdentificationCodeList.filter((item) =>
|
|
560
|
+
const select = searchIdentificationCodeList.filter((item) => item.unified_available_status);
|
|
634
561
|
setWalletSelect(select);
|
|
635
|
-
|
|
562
|
+
handleFetchUserIdentificationCodes(
|
|
563
|
+
select.map((item) => item.id),
|
|
564
|
+
select
|
|
565
|
+
);
|
|
636
566
|
if (select.length) {
|
|
637
567
|
Toast == null ? void 0 : Toast.success(
|
|
638
568
|
import_utils.locales.getText("wallet-pass-module-best-combination-selected")
|
|
@@ -661,12 +591,14 @@ var useWalletPass = (props) => {
|
|
|
661
591
|
} else {
|
|
662
592
|
if (hasGoodPass && !isBestDiscount) return;
|
|
663
593
|
setWalletSelect(newWalletRecommendList);
|
|
664
|
-
|
|
594
|
+
handleFetchUserIdentificationCodes(
|
|
595
|
+
newWalletRecommendList.map((item) => item.id),
|
|
596
|
+
newWalletRecommendList
|
|
597
|
+
);
|
|
665
598
|
Toast == null ? void 0 : Toast.success(
|
|
666
599
|
import_utils.locales.getText("wallet-pass-module-best-combination-selected")
|
|
667
600
|
);
|
|
668
601
|
}
|
|
669
|
-
setLoading(false);
|
|
670
602
|
});
|
|
671
603
|
const handleSelectDiscount = (0, import_ahooks.useMemoizedFn)((value, option) => {
|
|
672
604
|
var _a, _b, _c;
|
|
@@ -713,12 +645,6 @@ var useWalletPass = (props) => {
|
|
|
713
645
|
updateData
|
|
714
646
|
);
|
|
715
647
|
setUserIdentificationCodes(newUserIdentificationCodes);
|
|
716
|
-
const newTransformList = updateArrayItemById(
|
|
717
|
-
transformList,
|
|
718
|
-
targetId,
|
|
719
|
-
updateData
|
|
720
|
-
);
|
|
721
|
-
setTransformList(newTransformList);
|
|
722
648
|
const newSearchIdentificationCodeList = updateArrayItemById(
|
|
723
649
|
searchIdentificationCodeList,
|
|
724
650
|
targetId,
|
|
@@ -734,7 +660,6 @@ var useWalletPass = (props) => {
|
|
|
734
660
|
return {
|
|
735
661
|
newWalletRecommendList,
|
|
736
662
|
newUserIdentificationCodes,
|
|
737
|
-
newTransformList,
|
|
738
663
|
newSearchIdentificationCodeList,
|
|
739
664
|
newSelectedWallet
|
|
740
665
|
};
|
|
@@ -743,21 +668,44 @@ var useWalletPass = (props) => {
|
|
|
743
668
|
const handleConfirmEditAmount = (0, import_ahooks.useMemoizedFn)(
|
|
744
669
|
(value, id, data2) => {
|
|
745
670
|
if (value === 0) {
|
|
746
|
-
const filteredIds =
|
|
671
|
+
const filteredIds = selectedWalletIds.filter(
|
|
747
672
|
(walletId) => walletId !== data2.id
|
|
748
673
|
);
|
|
749
674
|
handleSelectWallet(filteredIds);
|
|
750
675
|
return;
|
|
751
676
|
}
|
|
752
|
-
setLoading(true);
|
|
753
677
|
if (!confirmedEditAmountIdsRef.current.includes(data2.id)) {
|
|
754
678
|
confirmedEditAmountIdsRef.current.push(data2.id);
|
|
755
679
|
}
|
|
756
680
|
updateWalletDataById(data2.id, { edit_current_amount: value });
|
|
681
|
+
if (timeoutRef.current) {
|
|
682
|
+
clearTimeout(timeoutRef.current);
|
|
683
|
+
}
|
|
684
|
+
timeoutRef.current = setTimeout(() => {
|
|
685
|
+
handleFetchUserIdentificationCodes(selectedWalletIds);
|
|
686
|
+
timeoutRef.current = null;
|
|
687
|
+
});
|
|
757
688
|
}
|
|
758
689
|
);
|
|
759
690
|
const handleBeforeEditAmount = (0, import_ahooks.useMemoizedFn)(
|
|
760
691
|
async (value, index, data2) => {
|
|
692
|
+
const result = await paymentModule.wallet.searchIdentificationCodeAsync(
|
|
693
|
+
{
|
|
694
|
+
code: data2.code,
|
|
695
|
+
prepare_payments: paymentModule.wallet.formatWalletPassList2PreparePayments(
|
|
696
|
+
selectedWalletRef.current.filter(
|
|
697
|
+
(item) => item.id !== data2.id
|
|
698
|
+
)
|
|
699
|
+
)
|
|
700
|
+
},
|
|
701
|
+
{ noCache: true }
|
|
702
|
+
);
|
|
703
|
+
if (result.data && result.data.length > 0) {
|
|
704
|
+
const resultItem = result.data.find((item) => item.id === data2.id);
|
|
705
|
+
if (resultItem) {
|
|
706
|
+
updateWalletDataById(data2.id, resultItem);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
761
709
|
return true;
|
|
762
710
|
}
|
|
763
711
|
);
|
|
@@ -782,6 +730,7 @@ var useWalletPass = (props) => {
|
|
|
782
730
|
selectedDiscountList,
|
|
783
731
|
handleSelectDiscount,
|
|
784
732
|
customerName,
|
|
733
|
+
fetchWalletRecommendList,
|
|
785
734
|
fetchUserIdentificationCodes,
|
|
786
735
|
getCachedWalletRecommendList,
|
|
787
736
|
getCachedUserIdentificationCodes,
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
.payment-modal-modal {
|
|
2
|
-
width: 880px!important;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
.payment-modal-wrapper {
|
|
6
2
|
.pisell-lowcode-modal-close {
|
|
7
3
|
display: none;
|
|
@@ -46,12 +42,10 @@
|
|
|
46
42
|
overflow: hidden;
|
|
47
43
|
display: flex;
|
|
48
44
|
flex-direction: column;
|
|
49
|
-
width: 100%!important;
|
|
50
45
|
|
|
51
46
|
.pisell-lowcode-modal-body {
|
|
52
47
|
// JavaScript设置: maxHeight: '100%' (基于父元素)
|
|
53
48
|
overflow-y: auto;
|
|
54
|
-
width: 100%!important;
|
|
55
49
|
}
|
|
56
50
|
}
|
|
57
51
|
}
|