@pisell/private-materials 6.4.42 → 6.5.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/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 +1 -1
- package/build/lowcode/preview.js +13 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/actionButtons/index.js +8 -4
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/customiseItemModal/index.js +2 -2
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +42 -48
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.js +4 -18
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info2/cartClientCard/index.js +20 -33
- package/es/components/booking/info2/cartClientCard/utils.d.ts +2 -2
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/checkout/PaymentModal.js +443 -723
- package/es/components/checkout/components/AdditionalModule/index.d.ts +1 -1
- package/es/components/checkout/components/AdditionalModule/index.js +49 -80
- package/es/components/checkout/components/AdditionalModule/index.less +34 -33
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -3
- package/es/components/checkout/components/AdditionalModule/locales.js +4 -7
- package/es/components/checkout/components/AmountSummary/index.d.ts +1 -2
- package/es/components/checkout/components/AmountSummary/index.js +31 -69
- package/es/components/checkout/components/AmountSummary/index.less +9 -27
- package/es/components/checkout/components/CashPaymentModule/index.less +2 -0
- package/es/components/checkout/components/PaymentDetailModal/index.js +10 -55
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -2
- package/es/components/checkout/components/PaymentOptionsModule/index.js +25 -40
- package/es/components/checkout/components/PaymentOptionsModule/index.less +6 -11
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +9 -42
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +82 -512
- package/es/components/checkout/components/PaymentResultToast/index.d.ts +1 -2
- package/es/components/checkout/components/PaymentResultToast/index.js +35 -90
- package/es/components/checkout/components/PaymentResultToast/index.less +77 -445
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +3 -3
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +0 -26
- package/es/components/checkout/components/PaymentResultToast/utils.js +2 -81
- package/es/components/checkout/components/ScrollableList/index.js +1 -0
- package/es/components/checkout/components/SearchAndClientModule/index.js +16 -17
- package/es/components/checkout/components/SearchAndClientModule/index.less +8 -29
- package/es/components/checkout/components/WalletPassModule/components/WalletPassHeader/index.js +1 -3
- package/es/components/checkout/components/WalletPassModule/index.less +3 -3
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +1 -1
- package/es/components/checkout/index.d.ts +1 -1
- package/es/components/checkout/index.js +1 -1
- package/es/components/checkout/index.less +38 -56
- package/es/components/checkout/locales.d.ts +0 -6
- package/es/components/checkout/locales.js +3 -9
- package/es/components/checkout/payment-modal-utils.js +5 -5
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +3 -3
- package/es/components/checkout/utils/PaymentResultToastUtils.js +72 -111
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toB/components/EFTPOS/index.js +58 -91
- package/es/components/pay/toB/components/MX51/index.js +44 -14
- package/es/components/pay/toB/types/index.d.ts +12 -0
- package/es/components/pay/toB/types/index.js +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +13 -6
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -2
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +1 -1
- package/es/components/ticketBooking/components/menuBar/index.js +1 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +5 -4
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +2 -4
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/index.js +5 -2
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/hooks/printer.d.ts +4 -0
- package/es/hooks/printer.js +35 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/plus/clientCard/index.js +2 -3
- package/es/plus/clientCard/index.less +32 -3
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.js +12 -9
- package/es/pro/comprehensiveSearch/components/searchSection/index.less +19 -22
- package/es/utils/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/actionButtons/index.js +5 -4
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/customiseItemModal/index.js +2 -2
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +0 -3
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.js +3 -15
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info2/cartClientCard/index.js +5 -16
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +2 -2
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/checkout/PaymentModal.js +120 -247
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +1 -1
- package/lib/components/checkout/components/AdditionalModule/index.js +34 -98
- package/lib/components/checkout/components/AdditionalModule/index.less +34 -33
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -3
- package/lib/components/checkout/components/AdditionalModule/locales.js +4 -7
- package/lib/components/checkout/components/AmountSummary/index.d.ts +1 -2
- package/lib/components/checkout/components/AmountSummary/index.js +47 -103
- package/lib/components/checkout/components/AmountSummary/index.less +9 -27
- package/lib/components/checkout/components/CashPaymentModule/index.less +2 -0
- package/lib/components/checkout/components/PaymentDetailModal/index.js +11 -56
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -2
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +8 -11
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +6 -11
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +9 -42
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +73 -279
- package/lib/components/checkout/components/PaymentResultToast/index.d.ts +1 -2
- package/lib/components/checkout/components/PaymentResultToast/index.js +22 -69
- package/lib/components/checkout/components/PaymentResultToast/index.less +77 -445
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +3 -3
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +0 -26
- package/lib/components/checkout/components/PaymentResultToast/utils.js +4 -58
- package/lib/components/checkout/components/ScrollableList/index.js +1 -0
- package/lib/components/checkout/components/SearchAndClientModule/index.js +15 -17
- package/lib/components/checkout/components/SearchAndClientModule/index.less +8 -29
- package/lib/components/checkout/components/WalletPassModule/components/WalletPassHeader/index.js +2 -12
- package/lib/components/checkout/components/WalletPassModule/index.less +3 -3
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +2 -2
- package/lib/components/checkout/index.d.ts +1 -1
- package/lib/components/checkout/index.js +0 -2
- package/lib/components/checkout/index.less +38 -56
- package/lib/components/checkout/locales.d.ts +0 -6
- package/lib/components/checkout/locales.js +3 -9
- package/lib/components/checkout/payment-modal-utils.js +5 -5
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +3 -3
- package/lib/components/checkout/utils/PaymentResultToastUtils.js +18 -26
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toB/components/EFTPOS/index.js +10 -25
- package/lib/components/pay/toB/components/MX51/index.js +37 -12
- package/lib/components/pay/toB/types/index.d.ts +12 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +15 -9
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -2
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +2 -2
- package/lib/components/ticketBooking/components/menuBar/index.js +1 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +12 -12
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +12 -2
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +12 -2
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +13 -5
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.js +2 -2
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/hooks/printer.d.ts +4 -0
- package/lib/hooks/printer.js +60 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/plus/clientCard/index.js +4 -5
- package/lib/plus/clientCard/index.less +32 -3
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.js +18 -6
- package/lib/pro/comprehensiveSearch/components/searchSection/index.less +19 -22
- package/lib/utils/index.d.ts +1 -1
- package/package.json +12 -12
@@ -80,7 +80,6 @@ function AmountSummary({
|
|
80
80
|
clientInfo,
|
81
81
|
onAmountChange,
|
82
82
|
onDepositStatusChange,
|
83
|
-
onBalanceDueAmountClick,
|
84
83
|
onConfirm,
|
85
84
|
paymentItems,
|
86
85
|
cartData,
|
@@ -174,12 +173,7 @@ function AmountSummary({
|
|
174
173
|
const roundingAmount = new import_decimal.default(item.rounding_amount);
|
175
174
|
if (roundingAmount.isNegative()) {
|
176
175
|
itemAmount = itemAmount.plus(roundingAmount.abs());
|
177
|
-
console.log(
|
178
|
-
"添加抹零金额到已付:",
|
179
|
-
roundingAmount.abs().toNumber(),
|
180
|
-
"项目:",
|
181
|
-
item
|
182
|
-
);
|
176
|
+
console.log("添加抹零金额到已付:", roundingAmount.abs().toNumber(), "项目:", item);
|
183
177
|
}
|
184
178
|
}
|
185
179
|
return acc.plus(itemAmount);
|
@@ -210,17 +204,14 @@ function AmountSummary({
|
|
210
204
|
if (!(walletPassData == null ? void 0 : walletPassData.selectedWallet) || !Array.isArray(walletPassData.selectedWallet)) {
|
211
205
|
return 0;
|
212
206
|
}
|
213
|
-
const totalDecimal = walletPassData.selectedWallet.reduce(
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
},
|
222
|
-
new import_decimal.default(0)
|
223
|
-
);
|
207
|
+
const totalDecimal = walletPassData.selectedWallet.reduce((totalDecimal2, wallet) => {
|
208
|
+
try {
|
209
|
+
const redeemDecimal = new import_decimal.default(wallet.redeem || "0");
|
210
|
+
return totalDecimal2.plus(redeemDecimal);
|
211
|
+
} catch {
|
212
|
+
return totalDecimal2;
|
213
|
+
}
|
214
|
+
}, new import_decimal.default(0));
|
224
215
|
return totalDecimal.toNumber();
|
225
216
|
};
|
226
217
|
const getOrderDueAmount = () => {
|
@@ -263,12 +254,7 @@ function AmountSummary({
|
|
263
254
|
}
|
264
255
|
const limits = getKeyboardLimits();
|
265
256
|
if (numericValue === 0) {
|
266
|
-
Toast.fail(
|
267
|
-
getText(
|
268
|
-
"pisell2.amount-summary.amount-cannot-be-zero",
|
269
|
-
"The amount cannot be 0"
|
270
|
-
)
|
271
|
-
);
|
257
|
+
Toast.fail(getText("pisell2.amount-summary.amount-cannot-be-zero", "The amount cannot be 0"));
|
272
258
|
return;
|
273
259
|
}
|
274
260
|
if (!inputStr || numericValue <= 0) {
|
@@ -328,12 +314,7 @@ function AmountSummary({
|
|
328
314
|
const visibleItems = hasMoreItems2 ? summaryData.slice(0, maxVisibleItems) : summaryData;
|
329
315
|
return visibleItems.map((item) => {
|
330
316
|
const displayLabel = item.label || labelMaps[item.key] || item.key;
|
331
|
-
return /* @__PURE__ */ import_react2.default.createElement("div", { key: item.key, className: (0, import_classnames.default)("payment-detail-row") }, /* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("payment-detail-label") }, displayLabel), /* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("payment-detail-amount") }, (0, import_utils.
|
332
|
-
precision: 2,
|
333
|
-
hideDecimalForWholeNumbers: false,
|
334
|
-
useThousandsSeparator: true,
|
335
|
-
showCurrencySymbol: true
|
336
|
-
})));
|
317
|
+
return /* @__PURE__ */ import_react2.default.createElement("div", { key: item.key, className: (0, import_classnames.default)("payment-detail-row") }, /* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("payment-detail-label") }, displayLabel), /* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("payment-detail-amount") }, (0, import_utils.formatAmount)(item.value, 2, amountSymbol)));
|
337
318
|
});
|
338
319
|
};
|
339
320
|
const hasMoreItems = () => {
|
@@ -371,16 +352,7 @@ function AmountSummary({
|
|
371
352
|
const renderConfirmMode = () => {
|
372
353
|
let balanceAmountValue = parseFormattedAmount(getBalanceDueAmount());
|
373
354
|
let balanceDecimal = new import_decimal.default(balanceAmountValue);
|
374
|
-
const finalBalanceAmount = (0, import_utils.
|
375
|
-
balanceDecimal.toNumber(),
|
376
|
-
amountSymbol,
|
377
|
-
{
|
378
|
-
precision: 2,
|
379
|
-
hideDecimalForWholeNumbers: false,
|
380
|
-
useThousandsSeparator: true,
|
381
|
-
showCurrencySymbol: true
|
382
|
-
}
|
383
|
-
);
|
355
|
+
const finalBalanceAmount = (0, import_utils.formatAmount)(balanceDecimal.toNumber(), 2, amountSymbol);
|
384
356
|
return /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("confirm-payment-container") }, /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("confirm-payment-content") }, /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("confirm-payment-text") }, getText("will.be.paid.in.full") || "Will be paid in full", " ", /* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("amount-text") }, finalBalanceAmount), " ", getText("by.wallet") || "by Wallet"), /* @__PURE__ */ import_react2.default.createElement(
|
385
357
|
import_antd.Button,
|
386
358
|
{
|
@@ -393,12 +365,7 @@ function AmountSummary({
|
|
393
365
|
};
|
394
366
|
const getMiddleContent = () => {
|
395
367
|
if (paymentType === "deposit") {
|
396
|
-
return /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("payment-details") }, shouldShowPartialPaidCard() && /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("partial-paid-card") }, /* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("partial-paid-label") }, getText("partial.paid") || "Partial Paid"), /* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("partial-paid-amount") }, (0, import_utils.
|
397
|
-
precision: 2,
|
398
|
-
hideDecimalForWholeNumbers: false,
|
399
|
-
useThousandsSeparator: true,
|
400
|
-
showCurrencySymbol: true
|
401
|
-
}))), renderSummaryItems(), hasMoreItems() && /* @__PURE__ */ import_react2.default.createElement(
|
368
|
+
return /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("payment-details") }, shouldShowPartialPaidCard() && /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("partial-paid-card") }, /* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("partial-paid-label") }, getText("partial.paid") || "Partial Paid"), /* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("partial-paid-amount") }, (0, import_utils.formatAmount)(partialPaidAmount, 2, amountSymbol))), renderSummaryItems(), hasMoreItems() && /* @__PURE__ */ import_react2.default.createElement(
|
402
369
|
"div",
|
403
370
|
{
|
404
371
|
className: (0, import_classnames.default)("more-section"),
|
@@ -416,12 +383,7 @@ function AmountSummary({
|
|
416
383
|
)
|
417
384
|
)));
|
418
385
|
} else {
|
419
|
-
return /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("payment-details") }, shouldShowPartialPaidCard() && /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("partial-paid-card") }, /* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("partial-paid-label") }, getText("partial.paid") || "Partial Paid"), /* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("partial-paid-amount") }, (0, import_utils.
|
420
|
-
precision: 2,
|
421
|
-
hideDecimalForWholeNumbers: false,
|
422
|
-
useThousandsSeparator: true,
|
423
|
-
showCurrencySymbol: true
|
424
|
-
}))), renderSummaryItems(), hasMoreItems() && /* @__PURE__ */ import_react2.default.createElement(
|
386
|
+
return /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("payment-details") }, shouldShowPartialPaidCard() && /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("partial-paid-card") }, /* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("partial-paid-label") }, getText("partial.paid") || "Partial Paid"), /* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("partial-paid-amount") }, (0, import_utils.formatAmount)(partialPaidAmount, 2, amountSymbol))), renderSummaryItems(), hasMoreItems() && /* @__PURE__ */ import_react2.default.createElement(
|
425
387
|
"div",
|
426
388
|
{
|
427
389
|
className: (0, import_classnames.default)("more-section"),
|
@@ -475,68 +437,50 @@ function AmountSummary({
|
|
475
437
|
/* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("middle-section") }, getMiddleContent()),
|
476
438
|
/* @__PURE__ */ import_react2.default.createElement(
|
477
439
|
"div",
|
478
|
-
{ className: (0, import_classnames.default)("balance-due-card",
|
479
|
-
"confirm-mode": shouldShowConfirmMode()
|
480
|
-
}) },
|
440
|
+
{ className: (0, import_classnames.default)("balance-due-card") },
|
481
441
|
// 如果应该显示确认模式,直接返回确认界面
|
482
|
-
shouldShowConfirmMode() ? renderConfirmMode() : /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-info") }, /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-label") }, paymentType === "deposit" ? getText("deposit.due") || "Deposit Due" : getText("balance.due") || "Balance Due"), /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-amount"),
|
483
|
-
|
484
|
-
|
485
|
-
precision: 2,
|
486
|
-
hideDecimalForWholeNumbers: false,
|
487
|
-
useThousandsSeparator: true,
|
488
|
-
showCurrencySymbol: true
|
489
|
-
}), /* @__PURE__ */ import_react2.default.createElement(
|
490
|
-
import_icon.Edit05,
|
442
|
+
shouldShowConfirmMode() ? renderConfirmMode() : /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-info") }, /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-label") }, paymentType === "deposit" ? getText("deposit.due") || "Deposit Due" : getText("balance.due") || "Balance Due"), /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-amount") }, (0, import_utils.formatAmount)(balanceDueAmount, 2, amountSymbol))),
|
443
|
+
!shouldShowConfirmMode() && /* @__PURE__ */ import_react2.default.createElement(
|
444
|
+
import_pisellPriceKeyboardPopover.default,
|
491
445
|
{
|
492
|
-
|
493
|
-
style: { color: "#7F56DA" }
|
494
|
-
}
|
495
|
-
))),
|
496
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
497
|
-
"div",
|
498
|
-
{
|
499
|
-
className: (0, import_classnames.default)("pay-section"),
|
500
|
-
style: { cursor: "pointer" },
|
501
|
-
role: "button"
|
502
|
-
},
|
503
|
-
/* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("pay-text") }, getText("pay") || "支付"),
|
504
|
-
/* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("pay-amount") }, (0, import_utils.formatAmountWithOptions)(
|
505
|
-
(() => {
|
446
|
+
value: (() => {
|
506
447
|
try {
|
507
448
|
return new import_decimal.default(currentAmount || "0").toNumber();
|
508
449
|
} catch {
|
509
450
|
return 0;
|
510
451
|
}
|
511
452
|
})(),
|
512
|
-
|
453
|
+
onConfirm: handleKeyboardConfirm,
|
454
|
+
showCurrencySymbol: true,
|
455
|
+
useThousandsSeparator: false,
|
456
|
+
selectType: "dark",
|
457
|
+
overlayClassName: "amount-summary-keyboard-popover"
|
458
|
+
},
|
459
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
460
|
+
"div",
|
513
461
|
{
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
}
|
519
|
-
|
462
|
+
className: (0, import_classnames.default)("pay-section"),
|
463
|
+
style: { cursor: "pointer" },
|
464
|
+
role: "button"
|
465
|
+
},
|
466
|
+
/* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("pay-text") }, getText("pay") || "支付"),
|
467
|
+
/* @__PURE__ */ import_react2.default.createElement("span", { className: (0, import_classnames.default)("pay-amount") }, (0, import_utils.formatAmount)((() => {
|
468
|
+
try {
|
469
|
+
return new import_decimal.default(currentAmount || "0").toNumber();
|
470
|
+
} catch {
|
471
|
+
return 0;
|
472
|
+
}
|
473
|
+
})(), 2, amountSymbol)),
|
474
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
475
|
+
import_icon.Edit05,
|
476
|
+
{
|
477
|
+
className: (0, import_classnames.default)("edit-icon"),
|
478
|
+
style: { color: "#7F56DA" }
|
479
|
+
}
|
480
|
+
)
|
481
|
+
)
|
520
482
|
)
|
521
483
|
),
|
522
|
-
!shouldShowConfirmMode() && /* @__PURE__ */ import_react2.default.createElement(
|
523
|
-
import_pisellPriceKeyboardPopover.default,
|
524
|
-
{
|
525
|
-
value: (() => {
|
526
|
-
try {
|
527
|
-
return new import_decimal.default(currentAmount || "0").toNumber();
|
528
|
-
} catch {
|
529
|
-
return 0;
|
530
|
-
}
|
531
|
-
})(),
|
532
|
-
onConfirm: handleKeyboardConfirm,
|
533
|
-
showCurrencySymbol: true,
|
534
|
-
useThousandsSeparator: false,
|
535
|
-
selectType: "dark",
|
536
|
-
overlayClassName: "amount-summary-keyboard-popover"
|
537
|
-
},
|
538
|
-
/* @__PURE__ */ import_react2.default.createElement(import_antd.Button, { className: (0, import_classnames.default)("split-payment-button") }, getText("split.payment") || "拆分支付")
|
539
|
-
),
|
540
484
|
/* @__PURE__ */ import_react2.default.createElement(
|
541
485
|
import_materials.PisellModal,
|
542
486
|
{
|
@@ -226,18 +226,13 @@
|
|
226
226
|
border-radius: 16px;
|
227
227
|
padding: 0 16px 0 16px;
|
228
228
|
color: #1a1a1a;
|
229
|
-
width:
|
229
|
+
width: 348px;
|
230
230
|
min-width: 200px;
|
231
231
|
height: 80px;
|
232
232
|
display: flex;
|
233
233
|
align-items: center;
|
234
234
|
justify-content: space-between;
|
235
235
|
gap: 8px;
|
236
|
-
|
237
|
-
// 确认模式下的特殊样式
|
238
|
-
&.confirm-mode {
|
239
|
-
width: 420px;
|
240
|
-
}
|
241
236
|
}
|
242
237
|
|
243
238
|
.balance-due-info {
|
@@ -255,12 +250,10 @@
|
|
255
250
|
}
|
256
251
|
|
257
252
|
.balance-due-amount {
|
258
|
-
font-size:
|
253
|
+
font-size: 16px;
|
259
254
|
font-weight: 400;
|
260
255
|
color: #7f56da;
|
261
256
|
line-height: 0.75;
|
262
|
-
text-decoration: underline;
|
263
|
-
text-underline-offset: 4px;
|
264
257
|
}
|
265
258
|
|
266
259
|
.pay-section {
|
@@ -279,16 +272,17 @@
|
|
279
272
|
.pay-amount {
|
280
273
|
font-size: 32px;
|
281
274
|
font-weight: 400;
|
282
|
-
color: #
|
275
|
+
color: #7f56da;
|
283
276
|
line-height: 0.75;
|
277
|
+
text-decoration: underline;
|
278
|
+
text-underline-offset: 6px;
|
284
279
|
}
|
285
280
|
|
286
281
|
.edit-icon {
|
287
|
-
width:
|
288
|
-
height:
|
282
|
+
width: 24px;
|
283
|
+
height: 24px;
|
289
284
|
flex-shrink: 0;
|
290
|
-
font-size:
|
291
|
-
margin-left: 8px;
|
285
|
+
font-size: 24px;
|
292
286
|
}
|
293
287
|
|
294
288
|
/* 覆盖下拉菜单选项的hover和active状态 */
|
@@ -407,7 +401,7 @@
|
|
407
401
|
border: none !important;
|
408
402
|
border-radius: 12px !important;
|
409
403
|
height: 48px !important;
|
410
|
-
padding: 12px
|
404
|
+
padding: 12px 32px !important;
|
411
405
|
font-size: 16px !important;
|
412
406
|
font-weight: 600 !important;
|
413
407
|
color: white !important;
|
@@ -474,15 +468,3 @@
|
|
474
468
|
}
|
475
469
|
}
|
476
470
|
}
|
477
|
-
|
478
|
-
.split-payment-button {
|
479
|
-
padding: 0 8px;
|
480
|
-
background: #079455;
|
481
|
-
color: white;
|
482
|
-
font-size: 14px;
|
483
|
-
border: 1px solid #C3B2E7;
|
484
|
-
height: 80px;
|
485
|
-
white-space: pre-line; // 让换行符(\n)生效
|
486
|
-
text-align: left; // 确保文本居中对齐
|
487
|
-
min-width: 68px;
|
488
|
-
}
|
@@ -108,12 +108,7 @@ function PaymentDetailModal({
|
|
108
108
|
if (!paymentItems || paymentItems.length === 0 || regularPayments.length === 0) {
|
109
109
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("no-payment-text") }, getText("no.payments.recorded") || "No payments recorded"));
|
110
110
|
}
|
111
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-record-container") }, regularPayments.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { key: item.uuid, className: (0, import_classnames.default)("payment-item") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-text") }, item.name, " - ", (/* @__PURE__ */ new Date()).toLocaleDateString(), " ", getText("pisell2.checkout.payment-detail.by") || "by", " ", getCustomerInfo().nickname), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-actions") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-amount") }, "-", (0, import_utils.
|
112
|
-
precision: 2,
|
113
|
-
hideDecimalForWholeNumbers: false,
|
114
|
-
useThousandsSeparator: true,
|
115
|
-
showCurrencySymbol: true
|
116
|
-
})), shouldShowVoidButton(item) && /* @__PURE__ */ import_react.default.createElement(
|
111
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-record-container") }, regularPayments.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { key: item.uuid, className: (0, import_classnames.default)("payment-item") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-text") }, item.name, " - ", (/* @__PURE__ */ new Date()).toLocaleDateString(), " ", getText("pisell2.checkout.payment-detail.by") || "by", " ", getCustomerInfo().nickname), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-actions") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-amount") }, "-", (0, import_utils.formatAmount)(Math.abs(item.amount), 2, amountSymbol)), shouldShowVoidButton(item) && /* @__PURE__ */ import_react.default.createElement(
|
117
112
|
"button",
|
118
113
|
{
|
119
114
|
className: (0, import_classnames.default)("void-button"),
|
@@ -136,15 +131,10 @@ function PaymentDetailModal({
|
|
136
131
|
className: (0, import_classnames.default)("balance-item-row")
|
137
132
|
},
|
138
133
|
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-item-text") }, wallet.name || wallet.product_name || getText("wallet.pass") || "Wallet Pass"),
|
139
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-item-amount") }, "-", wallet.redeem || (0, import_utils.
|
134
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-item-amount") }, "-", wallet.redeem || (0, import_utils.formatAmount)(
|
140
135
|
Math.abs(wallet.savedAmount || 0),
|
141
|
-
|
142
|
-
|
143
|
-
precision: 2,
|
144
|
-
hideDecimalForWholeNumbers: false,
|
145
|
-
useThousandsSeparator: true,
|
146
|
-
showCurrencySymbol: true
|
147
|
-
}
|
136
|
+
2,
|
137
|
+
amountSymbol
|
148
138
|
))
|
149
139
|
)
|
150
140
|
);
|
@@ -168,12 +158,7 @@ function PaymentDetailModal({
|
|
168
158
|
};
|
169
159
|
const renderSummaryItems = () => {
|
170
160
|
if (!summaryData || summaryData.length === 0) {
|
171
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-details-grid") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-details-column") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row-text") }, getText("no.items.found") || "No items found"), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row-amount") }, (0, import_utils.
|
172
|
-
precision: 2,
|
173
|
-
hideDecimalForWholeNumbers: false,
|
174
|
-
useThousandsSeparator: true,
|
175
|
-
showCurrencySymbol: true
|
176
|
-
})))));
|
161
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-details-grid") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-details-column") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row-text") }, getText("no.items.found") || "No items found"), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row-amount") }, (0, import_utils.formatAmount)(0, 2, amountSymbol)))));
|
177
162
|
}
|
178
163
|
const leftItems = summaryData.slice(0, Math.ceil(summaryData.length / 2));
|
179
164
|
const rightItems = summaryData.slice(Math.ceil(summaryData.length / 2));
|
@@ -182,23 +167,13 @@ function PaymentDetailModal({
|
|
182
167
|
if ((item == null ? void 0 : item.key) !== "discount") {
|
183
168
|
prefix = item.value >= 0 ? "+" : "";
|
184
169
|
}
|
185
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { key: item.key, className: (0, import_classnames.default)("order-row") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row-label") }, getDisplayLabel(item)), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row-amount") }, prefix, (0, import_utils.
|
186
|
-
precision: 2,
|
187
|
-
hideDecimalForWholeNumbers: false,
|
188
|
-
useThousandsSeparator: true,
|
189
|
-
showCurrencySymbol: true
|
190
|
-
})));
|
170
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { key: item.key, className: (0, import_classnames.default)("order-row") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row-label") }, getDisplayLabel(item)), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row-amount") }, prefix, (0, import_utils.formatAmount)(item.value, 2, amountSymbol)));
|
191
171
|
})), rightItems.length > 0 && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("divider-vertical") }), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-details-column") }, rightItems.map((item) => {
|
192
172
|
let prefix = "";
|
193
173
|
if ((item == null ? void 0 : item.key) !== "discount") {
|
194
174
|
prefix = item.value >= 0 ? "+" : "";
|
195
175
|
}
|
196
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { key: item.key, className: (0, import_classnames.default)("order-row") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row-label") }, getDisplayLabel(item)), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row-amount") }, prefix, (0, import_utils.
|
197
|
-
precision: 2,
|
198
|
-
hideDecimalForWholeNumbers: false,
|
199
|
-
useThousandsSeparator: true,
|
200
|
-
showCurrencySymbol: true
|
201
|
-
})));
|
176
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { key: item.key, className: (0, import_classnames.default)("order-row") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row-label") }, getDisplayLabel(item)), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("order-row-amount") }, prefix, (0, import_utils.formatAmount)(item.value, 2, amountSymbol)));
|
202
177
|
}))));
|
203
178
|
};
|
204
179
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-detail-modal") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("main-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-container") }, /* @__PURE__ */ import_react.default.createElement(
|
@@ -208,12 +183,7 @@ function PaymentDetailModal({
|
|
208
183
|
onClick: () => setOrderTotalExpanded(!orderTotalExpanded)
|
209
184
|
},
|
210
185
|
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-title-container") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-title") }, getText("order.total") || "Order Total")),
|
211
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-right") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-amount") }, (0, import_utils.
|
212
|
-
precision: 2,
|
213
|
-
hideDecimalForWholeNumbers: false,
|
214
|
-
useThousandsSeparator: true,
|
215
|
-
showCurrencySymbol: true
|
216
|
-
})), /* @__PURE__ */ import_react.default.createElement(CollapseIcon, { expanded: orderTotalExpanded }))
|
186
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-right") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-amount") }, (0, import_utils.formatAmount)(getTotalAmount(), 2, amountSymbol)), /* @__PURE__ */ import_react.default.createElement(CollapseIcon, { expanded: orderTotalExpanded }))
|
217
187
|
), orderTotalExpanded && /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-content") }, renderSummaryItems())), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("divider-horizontal") }), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-container") }, /* @__PURE__ */ import_react.default.createElement(
|
218
188
|
"div",
|
219
189
|
{
|
@@ -223,12 +193,7 @@ function PaymentDetailModal({
|
|
223
193
|
tabIndex: 0
|
224
194
|
},
|
225
195
|
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-title-container") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-title") }, getText("order.paid") || "Order Paid")),
|
226
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-right") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-amount") }, "-", (0, import_utils.
|
227
|
-
precision: 2,
|
228
|
-
hideDecimalForWholeNumbers: false,
|
229
|
-
useThousandsSeparator: true,
|
230
|
-
showCurrencySymbol: true
|
231
|
-
})), /* @__PURE__ */ import_react.default.createElement(CollapseIcon, { expanded: orderPaidExpanded }))
|
196
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-right") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-amount") }, "-", (0, import_utils.formatAmount)(getTotalPaidAmount(), 2, amountSymbol)), /* @__PURE__ */ import_react.default.createElement(CollapseIcon, { expanded: orderPaidExpanded }))
|
232
197
|
), orderPaidExpanded && renderPaymentItems())), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-to-pay-section") }, /* @__PURE__ */ import_react.default.createElement(
|
233
198
|
"div",
|
234
199
|
{
|
@@ -238,17 +203,7 @@ function PaymentDetailModal({
|
|
238
203
|
tabIndex: 0
|
239
204
|
},
|
240
205
|
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-title-container") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-to-pay-title") }, getText("balance.to.pay") || "Balance to Pay")),
|
241
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-to-pay-right") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-to-pay-amount") }, (0, import_utils.
|
242
|
-
|
243
|
-
hideDecimalForWholeNumbers: false,
|
244
|
-
useThousandsSeparator: true,
|
245
|
-
showCurrencySymbol: true
|
246
|
-
})), /* @__PURE__ */ import_react.default.createElement(CollapseIcon, { expanded: balanceToPayExpanded, color: "#7F56DA" }))
|
247
|
-
), balanceToPayExpanded && /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-to-pay-content") }, renderVoucherItems()), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-due-section") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-due-header") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-due-title") }, getText("balance.due") || "Balance Due"), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-due-amount") }, (0, import_utils.formatAmountWithOptions)(customAmount || 0, amountSymbol, {
|
248
|
-
precision: 2,
|
249
|
-
hideDecimalForWholeNumbers: false,
|
250
|
-
useThousandsSeparator: true,
|
251
|
-
showCurrencySymbol: true
|
252
|
-
}))))));
|
206
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-to-pay-right") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-to-pay-amount") }, (0, import_utils.formatAmount)(getBalanceDueAmount(), 2, amountSymbol)), /* @__PURE__ */ import_react.default.createElement(CollapseIcon, { expanded: balanceToPayExpanded, color: "#7F56DA" }))
|
207
|
+
), balanceToPayExpanded && /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-to-pay-content") }, renderVoucherItems()), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-due-section") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-due-header") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-due-title") }, getText("balance.due") || "Balance Due"), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("balance-due-amount") }, (0, import_utils.formatAmount)(customAmount || 0, 2, amountSymbol))))));
|
253
208
|
}
|
254
209
|
var PaymentDetailModal_default = PaymentDetailModal;
|
@@ -11,7 +11,6 @@ interface ExtendedPaymentOptionsModuleProps extends PaymentOptionsModuleProps {
|
|
11
11
|
title?: string;
|
12
12
|
onClick?: (method: ExtendedPaymentMethod) => void;
|
13
13
|
disabled?: boolean;
|
14
|
-
showCashPayment?: boolean;
|
15
14
|
}
|
16
|
-
declare function PaymentOptionsModule({ amountSymbol, orderInfo, onClick, paymentMethods, customAmount, title, disabled,
|
15
|
+
declare function PaymentOptionsModule({ amountSymbol, orderInfo, onClick, paymentMethods, customAmount, title, disabled, }: ExtendedPaymentOptionsModuleProps): JSX.Element;
|
17
16
|
export default PaymentOptionsModule;
|
@@ -55,8 +55,7 @@ function PaymentOptionsModule({
|
|
55
55
|
paymentMethods = [],
|
56
56
|
customAmount,
|
57
57
|
title,
|
58
|
-
disabled = false
|
59
|
-
showCashPayment = false
|
58
|
+
disabled = false
|
60
59
|
}) {
|
61
60
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
62
61
|
const context = (0, import_useEngineContext.default)();
|
@@ -109,14 +108,14 @@ function PaymentOptionsModule({
|
|
109
108
|
);
|
110
109
|
const renderPaymentIcon = (method) => {
|
111
110
|
if (method.code === "EFTPOS") {
|
112
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
111
|
+
return /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-credit-card-02", style: { fontSize: "36px", color: "#7F56DA" } });
|
113
112
|
}
|
114
113
|
switch (String(method.type)) {
|
115
114
|
case "credit-card":
|
116
115
|
case "eftpos":
|
117
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
116
|
+
return /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-credit-card-02", style: { fontSize: "36px", color: "#7F56DA" } });
|
118
117
|
default:
|
119
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
118
|
+
return /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-a-wallet-021", style: { fontSize: "36px", color: "#7F56DA" } });
|
120
119
|
}
|
121
120
|
};
|
122
121
|
return /* @__PURE__ */ import_react.default.createElement(
|
@@ -131,21 +130,19 @@ function PaymentOptionsModule({
|
|
131
130
|
import_ScrollableList.default,
|
132
131
|
{
|
133
132
|
height: "100%",
|
134
|
-
maxHeight:
|
133
|
+
maxHeight: 400,
|
135
134
|
gradientColor: "rgba(139, 92, 246, 0.1)",
|
136
135
|
gradientHeight: 50,
|
137
|
-
columnCount:
|
136
|
+
columnCount: 1,
|
138
137
|
rowGap: 7,
|
139
|
-
columnGap: 8,
|
140
138
|
containerStyle: {
|
141
139
|
width: "100%",
|
142
140
|
flex: 1,
|
143
141
|
// 使用flex来占用剩余空间
|
144
142
|
minHeight: 0,
|
145
143
|
// 允许缩小
|
146
|
-
position: "relative"
|
144
|
+
position: "relative"
|
147
145
|
// 确保定位上下文
|
148
|
-
paddingBottom: 8
|
149
146
|
}
|
150
147
|
},
|
151
148
|
filteredPaymentMethods.map((method) => /* @__PURE__ */ import_react.default.createElement(
|
@@ -220,7 +217,7 @@ function PaymentOptionsModule({
|
|
220
217
|
"payment-options-module-payment-method-right"
|
221
218
|
)
|
222
219
|
},
|
223
|
-
|
220
|
+
/* @__PURE__ */ import_react.default.createElement(
|
224
221
|
"div",
|
225
222
|
{
|
226
223
|
className: (0, import_classnames.default)(
|
@@ -34,10 +34,10 @@
|
|
34
34
|
/* 支付方式项样式 */
|
35
35
|
.payment-options-module-payment-method-item {
|
36
36
|
width: 100%;
|
37
|
-
height:
|
38
|
-
padding:
|
37
|
+
height: 72px;
|
38
|
+
padding: 14px;
|
39
39
|
background: white;
|
40
|
-
border-radius:
|
40
|
+
border-radius: 16px;
|
41
41
|
border: 1px var(--theme-color, #7f56da) solid;
|
42
42
|
cursor: pointer;
|
43
43
|
justify-content: space-between;
|
@@ -118,7 +118,7 @@
|
|
118
118
|
/* 选择按钮禁用状态样式 */
|
119
119
|
.payment-options-module-selection-button-disabled {
|
120
120
|
color: #D0D5DD;
|
121
|
-
|
121
|
+
|
122
122
|
.iconfont {
|
123
123
|
color: #D0D5DD !important;
|
124
124
|
}
|
@@ -197,12 +197,7 @@
|
|
197
197
|
|
198
198
|
/* PaymentIcon 样式 */
|
199
199
|
.payment-options-module-icon-container {
|
200
|
-
width:
|
201
|
-
height: 32px;
|
202
|
-
border-radius: 50%;
|
203
|
-
display: flex;
|
204
|
-
align-items: center;
|
205
|
-
justify-content: center;
|
200
|
+
width: 40px;
|
206
201
|
img {
|
207
202
|
width: 100%;
|
208
203
|
}
|
@@ -257,4 +252,4 @@
|
|
257
252
|
color: #101828;
|
258
253
|
/* 标题保持正常颜色 */
|
259
254
|
}
|
260
|
-
}
|
255
|
+
}
|
package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts
CHANGED
@@ -21,20 +21,16 @@ interface ShowPaymentResultToastConfig {
|
|
21
21
|
onCountdownComplete?: () => void;
|
22
22
|
/** 自定义关闭回调 */
|
23
23
|
onClose?: () => void;
|
24
|
-
/** 是否显示右上角关闭按钮 */
|
25
|
-
closable?: boolean;
|
26
24
|
}
|
27
25
|
interface PaymentResultToastContextType {
|
28
26
|
/** 显示成功弹窗 */
|
29
|
-
showSuccess: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) =>
|
27
|
+
showSuccess: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => void;
|
30
28
|
/** 显示失败弹窗 */
|
31
|
-
showFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) =>
|
29
|
+
showFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => void;
|
32
30
|
/** 显示钱包通行证失败弹窗 */
|
33
|
-
showWalletPassFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) =>
|
34
|
-
/** 显示部分支付弹窗 */
|
35
|
-
showPartiallyPaid: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => string;
|
31
|
+
showWalletPassFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => void;
|
36
32
|
/** 显示自定义状态弹窗 */
|
37
|
-
showToast: (config: ShowPaymentResultToastConfig) =>
|
33
|
+
showToast: (config: ShowPaymentResultToastConfig) => void;
|
38
34
|
/** 关闭弹窗 */
|
39
35
|
closeToast: () => void;
|
40
36
|
/** 是否正在显示弹窗 */
|
@@ -44,38 +40,9 @@ export declare const PaymentResultToastProvider: React.FC<{
|
|
44
40
|
children: React.ReactNode;
|
45
41
|
}>;
|
46
42
|
export declare const usePaymentResultToast: () => PaymentResultToastContextType;
|
47
|
-
declare
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
private readonly BOTTOM_OFFSET;
|
53
|
-
private readonly LEFT_OFFSET;
|
54
|
-
private cachedBottomOffset;
|
55
|
-
private cachedCenterOffset;
|
56
|
-
private tillButton;
|
57
|
-
setTillButton(tillButton: any): void;
|
58
|
-
private generateId;
|
59
|
-
private calculateAndCacheBottomOffset;
|
60
|
-
private calculateAndCacheCenterOffset;
|
61
|
-
private resetBottomOffsetCache;
|
62
|
-
private calculateBottomPosition;
|
63
|
-
private updatePositions;
|
64
|
-
addToast(config: ShowPaymentResultToastConfig): string;
|
65
|
-
removeToast(id: string): void;
|
66
|
-
clearAll(): void;
|
67
|
-
getCount(): number;
|
68
|
-
initializeResizeListener(): () => void;
|
69
|
-
}
|
70
|
-
declare const globalToastManager: GlobalToastManager;
|
71
|
-
export declare const showPaymentResultToastSuccess: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
|
72
|
-
export declare const showPaymentResultToastFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
|
73
|
-
export declare const showPaymentResultToastWalletPassFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
|
74
|
-
export declare const showPaymentResultToastPartiallyPaid: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => Promise<string>;
|
75
|
-
export declare const showPaymentResultToast: (config: ShowPaymentResultToastConfig) => Promise<string>;
|
76
|
-
export declare const closePaymentResultToast: (id?: string) => void;
|
77
|
-
export declare const clearAllPaymentResultToasts: () => void;
|
78
|
-
export declare const getPaymentResultToastCount: () => number;
|
43
|
+
export declare const showPaymentResultToastSuccess: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => void;
|
44
|
+
export declare const showPaymentResultToastFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => void;
|
45
|
+
export declare const showPaymentResultToastWalletPassFailed: (config: Omit<ShowPaymentResultToastConfig, 'statusClassName'>) => void;
|
46
|
+
export declare const showPaymentResultToast: (config: ShowPaymentResultToastConfig) => void;
|
47
|
+
export declare const closePaymentResultToast: () => void;
|
79
48
|
export type { ShowPaymentResultToastConfig, PaymentResultToastContextType };
|
80
|
-
export declare const setTillButton: (tillButton: any) => void;
|
81
|
-
export { globalToastManager };
|