@pisell/private-materials 6.7.7 → 6.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +17 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/appointmentBooking/components/Voucher/index.js +1 -2
- package/es/components/booking/addons/index.js +17 -25
- package/es/components/booking/components/footer/amount.d.ts +0 -1
- package/es/components/booking/components/footer/amount.js +84 -548
- package/es/components/booking/components/footer/index.js +56 -77
- package/es/components/booking/components/footer/utils.d.ts +0 -19
- package/es/components/booking/components/footer/utils.js +73 -194
- package/es/components/booking/components/voucher/index.js +7 -23
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/hooks/useQuotation.js +1 -4
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/service2/utils.js +0 -1
- package/es/components/booking/info2/cartClientCard/index.js +6 -30
- package/es/components/booking/info2/index.js +1 -1
- package/es/components/booking/info2/service/addService/index.js +3 -2
- package/es/components/booking/info2/service/editNormalService/index.js +0 -6
- package/es/components/booking/info2/service/editService/index.js +6 -16
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -15
- package/es/components/booking/info2/service/editService/utils.js +0 -66
- package/es/components/booking/utils.d.ts +0 -1
- package/es/components/booking/utils.js +3 -16
- package/es/components/checkout/PaymentModal.d.ts +5 -13
- package/es/components/checkout/PaymentModal.js +252 -304
- package/es/components/checkout/PaymentPlugin.d.ts +3 -0
- package/es/components/{systemSettings/registry/components/GroupModal.js → checkout/PaymentPlugin.js} +171 -132
- package/es/components/checkout/components/AdditionalModule/index.d.ts +1 -3
- package/es/components/checkout/components/AdditionalModule/index.js +12 -52
- package/es/components/checkout/components/AmountSummary/index.js +76 -9
- package/es/components/checkout/components/AmountSummary/index.less +6 -5
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +1 -3
- package/es/components/checkout/components/CashPaymentModule/index.js +2 -5
- package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +1 -6
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.js +1 -2
- package/es/components/checkout/components/PaymentOptionsModule/index.less +0 -4
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -4
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +8 -31
- package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
- package/es/components/checkout/components/PaymentResultToast/index.less +33 -94
- package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.d.ts +0 -6
- package/es/components/checkout/locales.js +0 -6
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +1 -0
- package/es/components/checkout/utils/PaymentResultToastUtils.js +1 -11
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +6 -14
- package/es/components/eftposPay/payo/config.js +32 -70
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eftposPay/tyro/index.js +0 -12
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +1 -2
- package/es/components/list/List.js +40 -56
- package/es/components/list/hooks/useListState.d.ts +3 -5
- package/es/components/list/hooks/useListState.js +2 -17
- package/es/components/list/styles/header.less +3 -3
- package/es/components/list/utils/index.d.ts +1 -13
- package/es/components/list/utils/index.js +1 -43
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +12 -14
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -4
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +0 -2
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +3 -13
- package/es/components/pay/toC/index.js +4 -7
- package/es/components/pay/toC/locales.d.ts +0 -3
- package/es/components/pay/toC/locales.js +3 -6
- package/es/components/pay/toC/status.d.ts +0 -1
- package/es/components/pay/toC/status.js +0 -3
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/subTotal/index.js +1 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +2 -33
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +36 -139
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +86 -2
- package/es/components/ticketBooking/components/menuBar/index.js +12 -109
- package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/es/components/ticketBooking/components/timeBar/index.js +7 -112
- package/es/components/ticketBooking/components/timeBar/index.less +0 -59
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +18 -29
- package/es/components/ticketBooking/locales.d.ts +0 -6
- package/es/components/ticketBooking/locales.js +3 -9
- package/es/components/ticketBooking/utils/index.d.ts +0 -3
- package/es/components/ticketBooking/utils/index.js +13 -36
- package/es/components/wallet/Detail/index.js +2 -34
- package/es/components/wallet/Detail/index.less +0 -11
- package/es/components/wallet/Detail/locales.d.ts +0 -6
- package/es/components/wallet/Detail/locales.js +2 -14
- package/es/components/wallet/Voucher/index.js +10 -11
- package/es/components/wallet/components/WalletCard.js +1 -5
- package/es/components/wallet/index.js +2 -4
- package/es/components/wallet/serve.d.ts +0 -7
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/index.d.ts +0 -4
- package/es/index.js +1 -5
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clinetSearch/index.js +30 -28
- package/es/plus/clinetSearch/locales.d.ts +0 -3
- package/es/plus/clinetSearch/locales.js +4 -7
- package/es/plus/clinetSearch/types.d.ts +0 -12
- package/es/plus/walletPassGallery/components/footerButton/index.js +4 -2
- package/es/plus/walletPassGallery/components/footerButton/index.less +59 -14
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/passDetail/index.js +31 -84
- package/es/plus/walletPassGallery/components/passDetail/index.less +0 -4
- package/es/plus/walletPassGallery/components/recharge/index.js +8 -19
- package/es/plus/walletPassGallery/index.js +3 -7
- package/es/plus/walletPassGallery/serve.d.ts +0 -3
- package/es/plus/walletPassGallery/serve.js +2 -4
- package/es/pro/Login2.0/index.less +8 -15
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/comprehensiveSearch/locales.js +1 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +36 -45
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +2 -4
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +1 -10
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +0 -14
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -1
- package/es/pro/priceKeyboard/components/shortcuts/index.js +2 -5
- package/es/pro/priceKeyboard/components/shortcuts/index.less +0 -4
- package/es/utils/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Voucher/index.js +1 -2
- package/lib/components/booking/addons/index.js +7 -15
- package/lib/components/booking/components/footer/amount.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.js +41 -293
- package/lib/components/booking/components/footer/index.js +11 -30
- package/lib/components/booking/components/footer/utils.d.ts +0 -19
- package/lib/components/booking/components/footer/utils.js +41 -138
- package/lib/components/booking/components/voucher/index.js +9 -25
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/hooks/useQuotation.js +1 -2
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.js +0 -1
- package/lib/components/booking/info2/cartClientCard/index.js +5 -25
- package/lib/components/booking/info2/index.js +2 -7
- package/lib/components/booking/info2/service/addService/index.js +2 -1
- package/lib/components/booking/info2/service/editNormalService/index.js +0 -6
- package/lib/components/booking/info2/service/editService/index.js +3 -12
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -15
- package/lib/components/booking/info2/service/editService/utils.js +3 -40
- package/lib/components/booking/utils.d.ts +0 -1
- package/lib/components/booking/utils.js +0 -11
- package/lib/components/checkout/PaymentModal.d.ts +5 -13
- package/lib/components/checkout/PaymentModal.js +147 -190
- package/lib/components/checkout/PaymentPlugin.d.ts +3 -0
- package/lib/components/checkout/PaymentPlugin.js +181 -0
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +1 -3
- package/lib/components/checkout/components/AdditionalModule/index.js +11 -52
- package/lib/components/checkout/components/AmountSummary/index.js +46 -5
- package/lib/components/checkout/components/AmountSummary/index.less +6 -5
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +1 -3
- package/lib/components/checkout/components/CashPaymentModule/index.js +2 -5
- package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +1 -5
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +0 -6
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +0 -4
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -4
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +5 -23
- package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
- package/lib/components/checkout/components/PaymentResultToast/index.less +33 -94
- package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.d.ts +0 -6
- package/lib/components/checkout/locales.js +0 -6
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +1 -0
- package/lib/components/checkout/utils/PaymentResultToastUtils.js +1 -11
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +6 -12
- package/lib/components/eftposPay/payo/config.js +73 -98
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eftposPay/tyro/index.js +0 -12
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/index.d.ts +1 -2
- package/lib/components/index.js +0 -3
- package/lib/components/list/List.js +16 -34
- package/lib/components/list/hooks/useListState.d.ts +3 -5
- package/lib/components/list/hooks/useListState.js +1 -14
- package/lib/components/list/styles/header.less +3 -3
- package/lib/components/list/utils/index.d.ts +1 -13
- package/lib/components/list/utils/index.js +0 -27
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +12 -14
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -4
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +3 -13
- package/lib/components/pay/toC/index.js +1 -4
- package/lib/components/pay/toC/locales.d.ts +0 -3
- package/lib/components/pay/toC/locales.js +3 -6
- package/lib/components/pay/toC/status.d.ts +0 -1
- package/lib/components/pay/toC/status.js +0 -5
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/subTotal/index.js +1 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +2 -33
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +24 -84
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -0
- package/lib/components/ticketBooking/components/menuBar/index.js +6 -42
- package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/lib/components/ticketBooking/components/timeBar/index.js +4 -105
- package/lib/components/ticketBooking/components/timeBar/index.less +0 -59
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +13 -17
- package/lib/components/ticketBooking/locales.d.ts +0 -6
- package/lib/components/ticketBooking/locales.js +3 -9
- package/lib/components/ticketBooking/utils/index.d.ts +0 -3
- package/lib/components/ticketBooking/utils/index.js +6 -20
- package/lib/components/wallet/Detail/index.js +3 -31
- package/lib/components/wallet/Detail/index.less +0 -11
- package/lib/components/wallet/Detail/locales.d.ts +0 -6
- package/lib/components/wallet/Detail/locales.js +2 -14
- package/lib/components/wallet/Voucher/index.js +8 -8
- package/lib/components/wallet/components/WalletCard.js +0 -4
- package/lib/components/wallet/index.js +2 -2
- package/lib/components/wallet/serve.d.ts +0 -7
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -12
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clinetSearch/index.js +8 -17
- package/lib/plus/clinetSearch/locales.d.ts +0 -3
- package/lib/plus/clinetSearch/locales.js +4 -7
- package/lib/plus/clinetSearch/types.d.ts +0 -12
- package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
- package/lib/plus/walletPassGallery/components/footerButton/index.less +59 -14
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.js +15 -54
- package/lib/plus/walletPassGallery/components/passDetail/index.less +0 -4
- package/lib/plus/walletPassGallery/components/recharge/index.js +1 -7
- package/lib/plus/walletPassGallery/index.js +3 -7
- package/lib/plus/walletPassGallery/serve.d.ts +0 -3
- package/lib/plus/walletPassGallery/serve.js +2 -3
- package/lib/pro/Login2.0/index.less +8 -15
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/comprehensiveSearch/locales.js +1 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +43 -42
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +2 -3
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +1 -8
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +0 -14
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +2 -3
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +0 -4
- package/lib/utils/index.d.ts +1 -1
- package/package.json +4 -4
- package/es/components/checkout/plugin.d.ts +0 -2
- package/es/components/checkout/plugin.js +0 -303
- package/es/components/eftposPay/payo/payment.d.ts +0 -66
- package/es/components/eftposPay/payo/payment.js +0 -579
- package/es/components/eftposPay/utils/log/index.d.ts +0 -110
- package/es/components/eftposPay/utils/log/index.js +0 -371
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
- package/es/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
- package/es/components/systemSettings/registry/components/ItemModal.js +0 -547
- package/es/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
- package/es/components/systemSettings/registry/components/ModuleList.js +0 -54
- package/es/components/systemSettings/registry/components/SectionList.d.ts +0 -4
- package/es/components/systemSettings/registry/components/SectionList.js +0 -174
- package/es/components/systemSettings/registry/components/SettingsTable.d.ts +0 -4
- package/es/components/systemSettings/registry/components/SettingsTable.js +0 -765
- package/es/components/systemSettings/registry/components/index.d.ts +0 -4
- package/es/components/systemSettings/registry/components/index.js +0 -4
- package/es/components/systemSettings/registry/index.d.ts +0 -5
- package/es/components/systemSettings/registry/index.js +0 -1059
- package/es/components/systemSettings/registry/index.less +0 -410
- package/es/components/systemSettings/registry/locales.d.ts +0 -272
- package/es/components/systemSettings/registry/locales.js +0 -300
- package/es/components/systemSettings/registry/services.d.ts +0 -77
- package/es/components/systemSettings/registry/services.js +0 -472
- package/es/components/systemSettings/registry/types.d.ts +0 -126
- package/es/components/systemSettings/registry/types.js +0 -1
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/es/components/systemSettings/registry/utils/typeValidation.js +0 -284
- package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
- package/es/components/systemSettings/registry/utils/validators.js +0 -44
- package/es/components/wallet/utils.d.ts +0 -48
- package/es/components/wallet/utils.js +0 -342
- package/lib/components/checkout/plugin.d.ts +0 -2
- package/lib/components/checkout/plugin.js +0 -263
- package/lib/components/eftposPay/payo/payment.d.ts +0 -66
- package/lib/components/eftposPay/payo/payment.js +0 -357
- package/lib/components/eftposPay/utils/log/index.d.ts +0 -110
- package/lib/components/eftposPay/utils/log/index.js +0 -294
- package/lib/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/GroupModal.js +0 -177
- package/lib/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/ItemModal.js +0 -508
- package/lib/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/ModuleList.js +0 -71
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/SectionList.js +0 -181
- package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/SettingsTable.js +0 -575
- package/lib/components/systemSettings/registry/components/index.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/index.js +0 -48
- package/lib/components/systemSettings/registry/index.d.ts +0 -5
- package/lib/components/systemSettings/registry/index.js +0 -529
- package/lib/components/systemSettings/registry/index.less +0 -410
- package/lib/components/systemSettings/registry/locales.d.ts +0 -272
- package/lib/components/systemSettings/registry/locales.js +0 -324
- package/lib/components/systemSettings/registry/services.d.ts +0 -77
- package/lib/components/systemSettings/registry/services.js +0 -290
- package/lib/components/systemSettings/registry/types.d.ts +0 -126
- package/lib/components/systemSettings/registry/types.js +0 -17
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/lib/components/systemSettings/registry/utils/typeValidation.js +0 -228
- package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
- package/lib/components/systemSettings/registry/utils/validators.js +0 -54
- package/lib/components/wallet/utils.d.ts +0 -48
- package/lib/components/wallet/utils.js +0 -287
- package/lowcode/payment-modal/meta.ts +0 -135
- package/lowcode/settings-registry/meta.ts +0 -29
- package/lowcode/wallet-pass-detail/meta.ts +0 -89
|
@@ -32,9 +32,7 @@ export function CashPaymentModule(_ref) {
|
|
|
32
32
|
_ref$balanceDueTotalA = _ref.balanceDueTotalAmount,
|
|
33
33
|
balanceDueTotalAmount = _ref$balanceDueTotalA === void 0 ? '0' : _ref$balanceDueTotalA,
|
|
34
34
|
_ref$syncingLock = _ref.syncingLock,
|
|
35
|
-
syncingLock = _ref$syncingLock === void 0 ? false : _ref$syncingLock
|
|
36
|
-
_ref$shortcutsSize = _ref.shortcutsSize,
|
|
37
|
-
shortcutsSize = _ref$shortcutsSize === void 0 ? 'default' : _ref$shortcutsSize;
|
|
35
|
+
syncingLock = _ref$syncingLock === void 0 ? false : _ref$syncingLock;
|
|
38
36
|
var _useState = useState(customAmount || ''),
|
|
39
37
|
_useState2 = _slicedToArray(_useState, 2),
|
|
40
38
|
amount = _useState2[0],
|
|
@@ -260,8 +258,7 @@ export function CashPaymentModule(_ref) {
|
|
|
260
258
|
};
|
|
261
259
|
}),
|
|
262
260
|
onReset: handleReset,
|
|
263
|
-
onEnter: syncingLock ? undefined : handleCashPay
|
|
264
|
-
shortcutsSize: shortcutsSize
|
|
261
|
+
onEnter: syncingLock ? undefined : handleCashPay
|
|
265
262
|
});
|
|
266
263
|
}
|
|
267
264
|
export default CashPaymentModule;
|
|
@@ -169,7 +169,7 @@ function PaymentDetailModal(_ref) {
|
|
|
169
169
|
className: classNames('payment-item-content')
|
|
170
170
|
}, /*#__PURE__*/React.createElement("div", {
|
|
171
171
|
className: classNames('payment-item-text')
|
|
172
|
-
}, item.name, " - ",
|
|
172
|
+
}, item.name, " - ", new Date().toLocaleDateString(), ' ', getText('pisell2.checkout.payment-detail.by') || 'by', ' ', getCustomerInfo().nickname), /*#__PURE__*/React.createElement("div", {
|
|
173
173
|
className: classNames('payment-item-actions')
|
|
174
174
|
}, /*#__PURE__*/React.createElement("div", {
|
|
175
175
|
className: classNames('payment-item-amount')
|
|
@@ -202,7 +202,7 @@ function PaymentDetailModal(_ref) {
|
|
|
202
202
|
className: classNames('payment-item-content')
|
|
203
203
|
}, /*#__PURE__*/React.createElement("div", {
|
|
204
204
|
className: classNames('payment-item-text')
|
|
205
|
-
}, item.name, " - ",
|
|
205
|
+
}, item.name, " - ", new Date().toLocaleDateString(), ' ', getText('pisell2.checkout.payment-detail.by') || 'by', ' ', getCustomerInfo().nickname), /*#__PURE__*/React.createElement("div", {
|
|
206
206
|
className: classNames('payment-item-actions')
|
|
207
207
|
}, /*#__PURE__*/React.createElement("div", {
|
|
208
208
|
className: classNames('payment-item-amount')
|
|
@@ -24,8 +24,6 @@ export interface PaymentMethodItemProps {
|
|
|
24
24
|
onClick?: (method: ExtendedPaymentMethod) => void;
|
|
25
25
|
/** 获取文本的函数 */
|
|
26
26
|
getText?: (key: string, fallback?: string) => string;
|
|
27
|
-
/** 大小 */
|
|
28
|
-
size?: 'default' | 'large';
|
|
29
27
|
}
|
|
30
28
|
declare const PaymentMethodItem: React.FC<PaymentMethodItemProps>;
|
|
31
29
|
export default PaymentMethodItem;
|
|
@@ -27,9 +27,7 @@ var PaymentMethodItem = function PaymentMethodItem(_ref) {
|
|
|
27
27
|
_ref$disabled = _ref.disabled,
|
|
28
28
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
29
29
|
onClick = _ref.onClick,
|
|
30
|
-
getText = _ref.getText
|
|
31
|
-
_ref$size = _ref.size,
|
|
32
|
-
size = _ref$size === void 0 ? 'default' : _ref$size;
|
|
30
|
+
getText = _ref.getText;
|
|
33
31
|
// 控制键盘弹窗显示状态
|
|
34
32
|
var _useState = useState(false),
|
|
35
33
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -153,9 +151,6 @@ var PaymentMethodItem = function PaymentMethodItem(_ref) {
|
|
|
153
151
|
'payment-options-module-pointer': !disabled,
|
|
154
152
|
'payment-options-module-disabled': disabled
|
|
155
153
|
}),
|
|
156
|
-
style: {
|
|
157
|
-
height: size === 'large' ? '82px' : '62px'
|
|
158
|
-
},
|
|
159
154
|
onClick: showKeyboard,
|
|
160
155
|
type: "button",
|
|
161
156
|
disabled: disabled
|
|
@@ -11,6 +11,5 @@ interface ExtendedPaymentOptionsModuleProps extends PaymentOptionsModuleProps {
|
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
showCashPayment?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare const SHOW_METHODS_CODE: string[];
|
|
15
14
|
declare function PaymentOptionsModule({ amountSymbol, orderInfo, onClick, paymentMethods, customAmount, title, disabled, showCashPayment, }: ExtendedPaymentOptionsModuleProps): React.JSX.Element;
|
|
16
15
|
export default PaymentOptionsModule;
|
|
@@ -10,7 +10,7 @@ import checkoutLocales from "../../locales";
|
|
|
10
10
|
|
|
11
11
|
// 扩展 PaymentOptionsModule Props 接口
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
var SHOW_METHODS_CODE = ['EFTPOS_LINKLY', 'EFTPOS', 'EFTPOS_TYRO', 'EFTPOS_WINDCAVE', 'EFTPOS_PAYO'];
|
|
14
14
|
function PaymentOptionsModule(_ref) {
|
|
15
15
|
var _context$appHelper, _context$appHelper$ge, _context$appHelper$ge2, _context$appHelper$ut;
|
|
16
16
|
var amountSymbol = _ref.amountSymbol,
|
|
@@ -92,7 +92,6 @@ function PaymentOptionsModule(_ref) {
|
|
|
92
92
|
}
|
|
93
93
|
}, filteredPaymentMethods.map(function (method) {
|
|
94
94
|
return /*#__PURE__*/React.createElement(PaymentMethodItem, {
|
|
95
|
-
size: (filteredPaymentMethods === null || filteredPaymentMethods === void 0 ? void 0 : filteredPaymentMethods.length) === 2 ? 'large' : 'default',
|
|
96
95
|
key: method.id,
|
|
97
96
|
method: method,
|
|
98
97
|
amountSymbol: amountSymbol,
|
package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts
CHANGED
|
@@ -23,10 +23,6 @@ interface ShowPaymentResultToastConfig {
|
|
|
23
23
|
onClose?: () => void;
|
|
24
24
|
/** 是否显示右上角关闭按钮 */
|
|
25
25
|
closable?: boolean;
|
|
26
|
-
/** 是否启用点击外部区域关闭弹窗(使用纯JS实现) */
|
|
27
|
-
clickOutsideToClose?: boolean;
|
|
28
|
-
/** 是否显示遮罩 */
|
|
29
|
-
mask?: boolean;
|
|
30
26
|
}
|
|
31
27
|
interface PaymentResultToastContextType {
|
|
32
28
|
/** 显示成功弹窗 */
|
|
@@ -263,13 +263,6 @@ var GlobalToastManager = /*#__PURE__*/function () {
|
|
|
263
263
|
|
|
264
264
|
// 更新容器样式,带有平滑动画效果
|
|
265
265
|
if (instance.container) {
|
|
266
|
-
// 如果开启了遮罩,使用居中定位,不更新位置
|
|
267
|
-
var hasMask = instance.container.getAttribute('data-mask') === 'true';
|
|
268
|
-
if (hasMask) {
|
|
269
|
-
// mask 模式下保持居中,不更新位置
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
266
|
// 添加动画类名表示正在移动
|
|
274
267
|
instance.container.classList.add('toast-moving');
|
|
275
268
|
instance.container.style.position = 'fixed';
|
|
@@ -319,46 +312,30 @@ var GlobalToastManager = /*#__PURE__*/function () {
|
|
|
319
312
|
autoClose: config.autoClose,
|
|
320
313
|
autoCloseDelay: config.autoCloseDelay || 30,
|
|
321
314
|
showCountdownProgress: config.showCountdownProgress,
|
|
322
|
-
clickOutsideToClose: config.clickOutsideToClose,
|
|
323
315
|
onCountdownComplete: config.onCountdownComplete,
|
|
324
316
|
onClose: function onClose() {
|
|
325
317
|
var _config$onClose2;
|
|
326
318
|
(_config$onClose2 = config.onClose) === null || _config$onClose2 === void 0 || _config$onClose2.call(config);
|
|
327
319
|
_this2.removeToast(id);
|
|
328
320
|
},
|
|
329
|
-
closable: config.closable !== undefined ? config.closable : DEFAULT_TOAST_CONFIG.closable
|
|
330
|
-
mask: config.mask || false
|
|
321
|
+
closable: config.closable !== undefined ? config.closable : DEFAULT_TOAST_CONFIG.closable
|
|
331
322
|
});
|
|
332
323
|
|
|
333
324
|
// 创建容器
|
|
334
325
|
var container = document.createElement('div');
|
|
335
326
|
container.setAttribute('data-toast-id', id);
|
|
336
|
-
// 如果开启遮罩,添加 data-mask 属性用于 CSS 样式区分
|
|
337
|
-
if (config.mask) {
|
|
338
|
-
container.setAttribute('data-mask', 'true');
|
|
339
|
-
}
|
|
340
327
|
|
|
341
328
|
// 计算动态的bottom位置
|
|
342
329
|
var dynamicBottomOffset = this.calculateAndCacheBottomOffset();
|
|
343
330
|
// const centerOffset = this.calculateAndCacheCenterOffset();
|
|
344
|
-
container.style.position = 'fixed';
|
|
345
|
-
// 如果开启遮罩,则需要居中
|
|
346
|
-
if (config.mask) {
|
|
347
|
-
container.style.left = '50%';
|
|
348
|
-
container.style.top = '50%';
|
|
349
|
-
container.style.transform = 'translate(-50%, -50%)';
|
|
350
|
-
container.style.bottom = 'auto';
|
|
351
|
-
container.style.right = 'auto';
|
|
352
|
-
} else {
|
|
353
|
-
// 设置初始样式确保左下角定位
|
|
354
|
-
// 新Toast使用动态计算的位置
|
|
355
|
-
container.style.left = "".concat(this.LEFT_OFFSET, "px");
|
|
356
|
-
container.style.bottom = "".concat(dynamicBottomOffset, "px"); // 使用动态计算的位置
|
|
357
|
-
container.style.top = 'auto';
|
|
358
|
-
container.style.right = 'auto';
|
|
359
|
-
container.style.transform = 'none';
|
|
360
|
-
}
|
|
361
331
|
|
|
332
|
+
// 设置初始样式确保左下角定位
|
|
333
|
+
// 新Toast使用动态计算的位置
|
|
334
|
+
container.style.position = 'fixed';
|
|
335
|
+
container.style.left = "".concat(this.LEFT_OFFSET, "px");
|
|
336
|
+
container.style.bottom = "".concat(dynamicBottomOffset, "px"); // 使用动态计算的位置
|
|
337
|
+
container.style.top = 'auto';
|
|
338
|
+
container.style.right = 'auto';
|
|
362
339
|
// 移除强制的z-index设置,让Toast使用默认层级
|
|
363
340
|
// container.style.zIndex = `${(finalConfig.zIndex || 2000) + this.instances.size}`;
|
|
364
341
|
|
|
@@ -269,8 +269,8 @@ var PaymentResultToast = /*#__PURE__*/memo(function (props) {
|
|
|
269
269
|
mask: mask,
|
|
270
270
|
maskClosable: maskClosable,
|
|
271
271
|
closable: false,
|
|
272
|
-
className: getBaseClassName("".concat(className, " ").concat(statusClassName
|
|
273
|
-
wrapClassName: "toast-modal-wrap
|
|
272
|
+
className: getBaseClassName("".concat(className, " ").concat(statusClassName)),
|
|
273
|
+
wrapClassName: "toast-modal-wrap",
|
|
274
274
|
style: _objectSpread(_objectSpread({}, height ? {
|
|
275
275
|
height: "".concat(height, "px")
|
|
276
276
|
} : {}), {}, {
|
|
@@ -297,12 +297,12 @@ var PaymentResultToast = /*#__PURE__*/memo(function (props) {
|
|
|
297
297
|
,
|
|
298
298
|
transitionName: "",
|
|
299
299
|
maskTransitionName: ""
|
|
300
|
-
//
|
|
300
|
+
// 禁用居中定位
|
|
301
301
|
,
|
|
302
|
-
centered:
|
|
303
|
-
//
|
|
302
|
+
centered: false
|
|
303
|
+
// 使用自定义getContainer确保渲染到正确的位置
|
|
304
304
|
,
|
|
305
|
-
getContainer:
|
|
305
|
+
getContainer: false
|
|
306
306
|
}, /*#__PURE__*/React.createElement("div", {
|
|
307
307
|
ref: modalContentRef,
|
|
308
308
|
className: getClassName('content', statusClassName),
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
margin: 0 !important;
|
|
18
18
|
pointer-events: none !important; // 让Toast Modal Wrap点击穿透
|
|
19
19
|
|
|
20
|
-
// 非 mask 模式下的样式
|
|
21
20
|
.ant-modal {
|
|
22
21
|
position: static !important;
|
|
23
22
|
top: auto !important;
|
|
@@ -33,47 +32,11 @@
|
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
// mask 模式下的全局样式(Modal 渲染到 body)
|
|
37
|
-
.toast-modal-wrap-with-mask {
|
|
38
|
-
position: fixed !important;
|
|
39
|
-
top: 0 !important;
|
|
40
|
-
left: 0 !important;
|
|
41
|
-
right: 0 !important;
|
|
42
|
-
bottom: 0 !important;
|
|
43
|
-
width: 100vw !important;
|
|
44
|
-
height: 100vh !important;
|
|
45
|
-
display: flex !important;
|
|
46
|
-
align-items: center !important;
|
|
47
|
-
justify-content: center !important;
|
|
48
|
-
pointer-events: auto !important; // mask 模式下需要响应点击
|
|
49
|
-
|
|
50
|
-
.ant-modal-mask {
|
|
51
|
-
position: fixed !important;
|
|
52
|
-
top: 0 !important;
|
|
53
|
-
left: 0 !important;
|
|
54
|
-
right: 0 !important;
|
|
55
|
-
bottom: 0 !important;
|
|
56
|
-
width: 100vw !important;
|
|
57
|
-
height: 100vh !important;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.ant-modal {
|
|
61
|
-
position: relative !important;
|
|
62
|
-
top: auto !important;
|
|
63
|
-
left: auto !important;
|
|
64
|
-
transform: none !important;
|
|
65
|
-
margin: 0 !important;
|
|
66
|
-
padding: 0 !important;
|
|
67
|
-
width: auto !important;
|
|
68
|
-
max-width: none !important;
|
|
69
|
-
pointer-events: auto !important; // Modal 内容可以响应点击
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
35
|
// Toast容器样式 - 用于多实例定位
|
|
74
36
|
[data-toast-id] {
|
|
75
37
|
z-index: 1000;
|
|
76
38
|
position: fixed !important;
|
|
39
|
+
left: 96px !important;
|
|
77
40
|
/* 注意:不设置bottom的!important,让JavaScript可以动态更新 */
|
|
78
41
|
/* 移除强制的z-index设置,让Toast使用默认层级 */
|
|
79
42
|
pointer-events: none !important; // 让Toast容器本身点击穿透
|
|
@@ -82,23 +45,6 @@
|
|
|
82
45
|
width: auto !important;
|
|
83
46
|
height: auto !important;
|
|
84
47
|
|
|
85
|
-
// 非 mask 模式下使用左下角定位
|
|
86
|
-
&:not([data-mask="true"]) {
|
|
87
|
-
left: 96px !important;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// mask 模式下,Modal 会渲染到 body,容器只作为占位符
|
|
91
|
-
// 不需要设置定位,因为 Modal 已经独立渲染
|
|
92
|
-
&[data-mask="true"] {
|
|
93
|
-
// 容器在 mask 模式下不需要定位,Modal 会独立渲染到 body
|
|
94
|
-
position: static !important;
|
|
95
|
-
left: auto !important;
|
|
96
|
-
top: auto !important;
|
|
97
|
-
bottom: auto !important;
|
|
98
|
-
right: auto !important;
|
|
99
|
-
transform: none !important;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
48
|
/* 新Toast进入动画 */
|
|
103
49
|
&.toast-entering {
|
|
104
50
|
opacity: 0;
|
|
@@ -135,49 +81,42 @@
|
|
|
135
81
|
}
|
|
136
82
|
|
|
137
83
|
// 强制覆盖Ant Design Modal的默认定位
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
pointer-events: none !important; // 让Modal wrap点击穿透
|
|
143
|
-
}
|
|
84
|
+
.ant-modal-wrap {
|
|
85
|
+
position: static !important;
|
|
86
|
+
pointer-events: none !important; // 让Modal wrap点击穿透
|
|
87
|
+
}
|
|
144
88
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
89
|
+
.ant-modal {
|
|
90
|
+
position: static !important;
|
|
91
|
+
top: auto !important;
|
|
92
|
+
left: auto !important;
|
|
93
|
+
transform: none !important;
|
|
94
|
+
margin: 0 !important;
|
|
95
|
+
padding: 0 !important;
|
|
96
|
+
pointer-events: none !important; // 让Modal本身点击穿透
|
|
154
97
|
}
|
|
155
98
|
|
|
156
|
-
// mask 模式下,Modal 会渲染到 body,容器内的样式不再需要
|
|
157
|
-
// 样式已通过全局 .toast-modal-wrap-with-mask 类名设置
|
|
158
99
|
|
|
159
|
-
// 覆盖所有可能的Ant Design Modal
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
100
|
+
// 覆盖所有可能的Ant Design Modal定位
|
|
101
|
+
.ant-modal-wrap {
|
|
102
|
+
position: static !important;
|
|
103
|
+
display: block !important;
|
|
104
|
+
overflow: visible !important;
|
|
105
|
+
pointer-events: none !important; // 让Modal wrap点击穿透
|
|
106
|
+
}
|
|
167
107
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
108
|
+
.ant-modal {
|
|
109
|
+
position: static !important;
|
|
110
|
+
top: auto !important;
|
|
111
|
+
left: auto !important;
|
|
112
|
+
right: auto !important;
|
|
113
|
+
bottom: auto !important;
|
|
114
|
+
transform: none !important;
|
|
115
|
+
margin: 0 !important;
|
|
116
|
+
padding: 0 !important;
|
|
117
|
+
width: 100% !important;
|
|
118
|
+
max-width: none !important;
|
|
119
|
+
pointer-events: none !important; // 让Modal点击穿透
|
|
181
120
|
}
|
|
182
121
|
|
|
183
122
|
// Toast进入动画
|
|
@@ -462,7 +401,7 @@
|
|
|
462
401
|
// 副标题样式
|
|
463
402
|
&-subtitle {
|
|
464
403
|
&-text {
|
|
465
|
-
font-size:
|
|
404
|
+
font-size: 30px; // 与图片一致
|
|
466
405
|
font-weight: 600; // 与图片一致
|
|
467
406
|
text-shadow: none; // 移除阴影
|
|
468
407
|
|
|
@@ -40,12 +40,12 @@ var SearchAndClientModule = function SearchAndClientModule(props) {
|
|
|
40
40
|
var bookingTicket = useBookingTicket();
|
|
41
41
|
var handleSearch = useDebounceFn( /*#__PURE__*/function () {
|
|
42
42
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(keyword) {
|
|
43
|
-
var res, _Toast$info, _clientCardRef$curren, _clientCardRef$curren2,
|
|
43
|
+
var res, _Toast$info, _clientCardRef$curren, _clientCardRef$curren2, _res$data, customer, rest, _Toast$info2, _customer;
|
|
44
44
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
45
45
|
while (1) switch (_context.prev = _context.next) {
|
|
46
46
|
case 0:
|
|
47
47
|
if (!keyword) {
|
|
48
|
-
_context.next =
|
|
48
|
+
_context.next = 24;
|
|
49
49
|
break;
|
|
50
50
|
}
|
|
51
51
|
setLoading(true);
|
|
@@ -62,46 +62,47 @@ var SearchAndClientModule = function SearchAndClientModule(props) {
|
|
|
62
62
|
return _context.abrupt("return");
|
|
63
63
|
case 9:
|
|
64
64
|
if (!('type' in res && res.type == 'walletCode')) {
|
|
65
|
-
_context.next =
|
|
65
|
+
_context.next = 16;
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
68
|
-
if (
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
// if (disabledSwitch) {
|
|
69
|
+
// Toast?.info?.(
|
|
70
|
+
// locales.getText(
|
|
71
|
+
// 'pisell2.checkout.client-card.tip.partially-paid'
|
|
72
|
+
// )
|
|
73
|
+
// );
|
|
74
|
+
// return;
|
|
75
|
+
// }
|
|
75
76
|
_res$data = res.data, customer = _res$data.customer, rest = _objectWithoutProperties(_res$data, _excluded); // todo 无绑定client
|
|
76
77
|
if (customer) {
|
|
77
|
-
_context.next =
|
|
78
|
+
_context.next = 14;
|
|
78
79
|
break;
|
|
79
80
|
}
|
|
80
|
-
Toast === null || Toast === void 0 || (_Toast$
|
|
81
|
+
Toast === null || Toast === void 0 || (_Toast$info2 = Toast.info) === null || _Toast$info2 === void 0 || _Toast$info2.call(Toast, locales.getText('pisell2.checkout.wallet-pass-module.no-result'));
|
|
81
82
|
return _context.abrupt("return");
|
|
82
|
-
case
|
|
83
|
+
case 14:
|
|
83
84
|
_customer = _objectSpread(_objectSpread({}, customer), {}, {
|
|
84
85
|
latest_wallet_detail: rest
|
|
85
86
|
}); // @ts-ignore
|
|
86
87
|
(_clientCardRef$curren = clientCardRef.current) === null || _clientCardRef$curren === void 0 || (_clientCardRef$curren2 = _clientCardRef$curren.handleSetClient) === null || _clientCardRef$curren2 === void 0 || _clientCardRef$curren2.call(_clientCardRef$curren, _customer, {
|
|
87
88
|
sameClientTip: locales.getText('pisell2.checkout.client-card.tip.same-client')
|
|
88
89
|
});
|
|
89
|
-
case
|
|
90
|
+
case 16:
|
|
90
91
|
setValue('');
|
|
91
|
-
_context.next =
|
|
92
|
+
_context.next = 21;
|
|
92
93
|
break;
|
|
93
|
-
case
|
|
94
|
-
_context.prev =
|
|
94
|
+
case 19:
|
|
95
|
+
_context.prev = 19;
|
|
95
96
|
_context.t0 = _context["catch"](2);
|
|
96
|
-
case
|
|
97
|
-
_context.prev =
|
|
97
|
+
case 21:
|
|
98
|
+
_context.prev = 21;
|
|
98
99
|
setLoading(false);
|
|
99
|
-
return _context.finish(
|
|
100
|
-
case
|
|
100
|
+
return _context.finish(21);
|
|
101
|
+
case 24:
|
|
101
102
|
case "end":
|
|
102
103
|
return _context.stop();
|
|
103
104
|
}
|
|
104
|
-
}, _callee, null, [[2,
|
|
105
|
+
}, _callee, null, [[2, 19, 21, 24]]);
|
|
105
106
|
}));
|
|
106
107
|
return function (_x) {
|
|
107
108
|
return _ref.apply(this, arguments);
|
|
@@ -150,23 +151,23 @@ var SearchAndClientModule = function SearchAndClientModule(props) {
|
|
|
150
151
|
size: 'default'
|
|
151
152
|
}
|
|
152
153
|
};
|
|
153
|
-
if (disabledSwitch === true) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
154
|
+
// if (disabledSwitch === true) {
|
|
155
|
+
// _props = {
|
|
156
|
+
// open: false,
|
|
157
|
+
// buttonProps: {
|
|
158
|
+
// icon,
|
|
159
|
+
// size: 'default',
|
|
160
|
+
// onClick: () => {
|
|
161
|
+
// // todo 根据当前订单付款情况判断是否可以切换
|
|
162
|
+
// Toast?.info?.(
|
|
163
|
+
// locales.getText('pisell2.checkout.client-card.tip.partially-paid')
|
|
164
|
+
// );
|
|
165
|
+
// },
|
|
166
|
+
// style: { cursor: 'not-allowed' },
|
|
167
|
+
// },
|
|
168
|
+
// };
|
|
169
|
+
// }
|
|
170
|
+
|
|
170
171
|
return _props;
|
|
171
172
|
}, [Toast, disabledSwitch]);
|
|
172
173
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -141,7 +141,6 @@ declare const _default: {
|
|
|
141
141
|
'pisell2.checkout.modal.close-price-adjustment': string;
|
|
142
142
|
'pisell2.checkout.modal.reset-price-adjustment': string;
|
|
143
143
|
'pisell2.checkout.modal.done-price-adjustment': string;
|
|
144
|
-
'pisell2.checkout.modal.price-adjustment-tips': string;
|
|
145
144
|
'pisell2.checkout.send-payment-link.modal-title': string;
|
|
146
145
|
'pisell2.checkout.send-payment-link.email-address': string;
|
|
147
146
|
'pisell2.checkout.send-payment-link.email-placeholder': string;
|
|
@@ -155,7 +154,6 @@ declare const _default: {
|
|
|
155
154
|
'wallet-pass-module-customer-name-walk-in': string;
|
|
156
155
|
'pisell2.amount-summary.amount-cannot-be-zero': string;
|
|
157
156
|
'pisell2.checkout.order-sync-failed': string;
|
|
158
|
-
'pisell2.checkout.order-create-failed': string;
|
|
159
157
|
'pisell2.checkout.sync-retry-hint': string;
|
|
160
158
|
'pisell2.checkout.tips': string;
|
|
161
159
|
retry: string;
|
|
@@ -303,7 +301,6 @@ declare const _default: {
|
|
|
303
301
|
'pisell2.checkout.modal.close-price-adjustment': string;
|
|
304
302
|
'pisell2.checkout.modal.reset-price-adjustment': string;
|
|
305
303
|
'pisell2.checkout.modal.done-price-adjustment': string;
|
|
306
|
-
'pisell2.checkout.modal.price-adjustment-tips': string;
|
|
307
304
|
'pisell2.checkout.send-payment-link.modal-title': string;
|
|
308
305
|
'pisell2.checkout.send-payment-link.email-address': string;
|
|
309
306
|
'pisell2.checkout.send-payment-link.email-placeholder': string;
|
|
@@ -325,7 +322,6 @@ declare const _default: {
|
|
|
325
322
|
'wallet-pass-module-customer-name-walk-in': string;
|
|
326
323
|
'pisell2.amount-summary.amount-cannot-be-zero': string;
|
|
327
324
|
'pisell2.checkout.order-sync-failed': string;
|
|
328
|
-
'pisell2.checkout.order-create-failed': string;
|
|
329
325
|
'pisell2.checkout.sync-retry-hint': string;
|
|
330
326
|
'pisell2.checkout.tips': string;
|
|
331
327
|
retry: string;
|
|
@@ -481,7 +477,6 @@ declare const _default: {
|
|
|
481
477
|
'pisell2.checkout.modal.close-price-adjustment': string;
|
|
482
478
|
'pisell2.checkout.modal.reset-price-adjustment': string;
|
|
483
479
|
'pisell2.checkout.modal.done-price-adjustment': string;
|
|
484
|
-
'pisell2.checkout.modal.price-adjustment-tips': string;
|
|
485
480
|
'pisell2.checkout.send-payment-link.modal-title': string;
|
|
486
481
|
'pisell2.checkout.send-payment-link.email-address': string;
|
|
487
482
|
'pisell2.checkout.send-payment-link.email-placeholder': string;
|
|
@@ -495,7 +490,6 @@ declare const _default: {
|
|
|
495
490
|
'wallet-pass-module-customer-name-walk-in': string;
|
|
496
491
|
'pisell2.amount-summary.amount-cannot-be-zero': string;
|
|
497
492
|
'pisell2.checkout.order-sync-failed': string;
|
|
498
|
-
'pisell2.checkout.order-create-failed': string;
|
|
499
493
|
'pisell2.checkout.sync-retry-hint': string;
|
|
500
494
|
'pisell2.checkout.tips': string;
|
|
501
495
|
retry: string;
|
|
@@ -180,7 +180,6 @@ export default {
|
|
|
180
180
|
'pisell2.checkout.modal.close-price-adjustment': 'Close price adjustment modal',
|
|
181
181
|
'pisell2.checkout.modal.reset-price-adjustment': 'Reset',
|
|
182
182
|
'pisell2.checkout.modal.done-price-adjustment': 'Done',
|
|
183
|
-
'pisell2.checkout.modal.price-adjustment-tips': 'Changing amount will update order total',
|
|
184
183
|
// Send Payment Link Modal
|
|
185
184
|
'pisell2.checkout.send-payment-link.modal-title': 'Send Payment Link',
|
|
186
185
|
'pisell2.checkout.send-payment-link.email-address': 'Email Address',
|
|
@@ -201,7 +200,6 @@ export default {
|
|
|
201
200
|
'pisell2.amount-summary.amount-cannot-be-zero': 'The amount cannot be 0',
|
|
202
201
|
// Order sync errors
|
|
203
202
|
'pisell2.checkout.order-sync-failed': 'Order sync failed, please check your network',
|
|
204
|
-
'pisell2.checkout.order-create-failed': 'Order create failed, please refresh app',
|
|
205
203
|
'pisell2.checkout.sync-retry-hint': 'Network error, please click the retry button to resync the order',
|
|
206
204
|
'pisell2.checkout.tips': 'Tips',
|
|
207
205
|
'retry': 'Retry',
|
|
@@ -381,7 +379,6 @@ export default {
|
|
|
381
379
|
'pisell2.checkout.modal.close-price-adjustment': '关闭价格调整弹窗',
|
|
382
380
|
'pisell2.checkout.modal.reset-price-adjustment': '重置',
|
|
383
381
|
'pisell2.checkout.modal.done-price-adjustment': '完成',
|
|
384
|
-
'pisell2.checkout.modal.price-adjustment-tips': '修改金额将更新订单总额',
|
|
385
382
|
// Send Payment Link Modal
|
|
386
383
|
'pisell2.checkout.send-payment-link.modal-title': '发送支付链接',
|
|
387
384
|
'pisell2.checkout.send-payment-link.email-address': '邮箱地址',
|
|
@@ -421,7 +418,6 @@ export default {
|
|
|
421
418
|
'pisell2.amount-summary.amount-cannot-be-zero': '金额不能为0',
|
|
422
419
|
// Order sync errors
|
|
423
420
|
'pisell2.checkout.order-sync-failed': '订单同步失败,请检查网络',
|
|
424
|
-
'pisell2.checkout.order-create-failed': '订单创建失败,请重启APP',
|
|
425
421
|
'pisell2.checkout.sync-retry-hint': '网络异常,请点击重试按钮重新同步订单',
|
|
426
422
|
'pisell2.checkout.tips': '提示',
|
|
427
423
|
'retry': '重试',
|
|
@@ -620,7 +616,6 @@ export default {
|
|
|
620
616
|
'pisell2.checkout.modal.close-price-adjustment': '關閉價格調整彈窗',
|
|
621
617
|
'pisell2.checkout.modal.reset-price-adjustment': '重置',
|
|
622
618
|
'pisell2.checkout.modal.done-price-adjustment': '完成',
|
|
623
|
-
'pisell2.checkout.modal.price-adjustment-tips': '修改金額將更新訂單總額',
|
|
624
619
|
// Send Payment Link Modal
|
|
625
620
|
'pisell2.checkout.send-payment-link.modal-title': '發送支付鏈接',
|
|
626
621
|
'pisell2.checkout.send-payment-link.email-address': '郵箱地址',
|
|
@@ -641,7 +636,6 @@ export default {
|
|
|
641
636
|
'pisell2.amount-summary.amount-cannot-be-zero': '金額不能為0',
|
|
642
637
|
// Order sync errors
|
|
643
638
|
'pisell2.checkout.order-sync-failed': '訂單同步失敗,請檢查網絡',
|
|
644
|
-
'pisell2.checkout.order-create-failed': '订单创建失败,请重启APP',
|
|
645
639
|
'pisell2.checkout.sync-retry-hint': '網絡異常,請點擊重試按鈕重新同步訂單',
|
|
646
640
|
'pisell2.checkout.tips': '提示',
|
|
647
641
|
'retry': '重試',
|