@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
|
@@ -205,10 +205,6 @@ var GlobalToastManager = class {
|
|
|
205
205
|
instance.offsetIndex = index;
|
|
206
206
|
const bottomPosition = this.calculateBottomPosition(index, totalCount);
|
|
207
207
|
if (instance.container) {
|
|
208
|
-
const hasMask = instance.container.getAttribute("data-mask") === "true";
|
|
209
|
-
if (hasMask) {
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
208
|
instance.container.classList.add("toast-moving");
|
|
213
209
|
instance.container.style.position = "fixed";
|
|
214
210
|
instance.container.style.left = `${this.LEFT_OFFSET}px`;
|
|
@@ -244,36 +240,22 @@ var GlobalToastManager = class {
|
|
|
244
240
|
autoClose: config.autoClose,
|
|
245
241
|
autoCloseDelay: config.autoCloseDelay || 30,
|
|
246
242
|
showCountdownProgress: config.showCountdownProgress,
|
|
247
|
-
clickOutsideToClose: config.clickOutsideToClose,
|
|
248
243
|
onCountdownComplete: config.onCountdownComplete,
|
|
249
244
|
onClose: () => {
|
|
250
245
|
var _a;
|
|
251
246
|
(_a = config.onClose) == null ? void 0 : _a.call(config);
|
|
252
247
|
this.removeToast(id);
|
|
253
248
|
},
|
|
254
|
-
closable: config.closable !== void 0 ? config.closable : DEFAULT_TOAST_CONFIG.closable
|
|
255
|
-
mask: config.mask || false
|
|
249
|
+
closable: config.closable !== void 0 ? config.closable : DEFAULT_TOAST_CONFIG.closable
|
|
256
250
|
};
|
|
257
251
|
const container = document.createElement("div");
|
|
258
252
|
container.setAttribute("data-toast-id", id);
|
|
259
|
-
if (config.mask) {
|
|
260
|
-
container.setAttribute("data-mask", "true");
|
|
261
|
-
}
|
|
262
253
|
const dynamicBottomOffset = this.calculateAndCacheBottomOffset();
|
|
263
254
|
container.style.position = "fixed";
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
container.style.bottom = "auto";
|
|
269
|
-
container.style.right = "auto";
|
|
270
|
-
} else {
|
|
271
|
-
container.style.left = `${this.LEFT_OFFSET}px`;
|
|
272
|
-
container.style.bottom = `${dynamicBottomOffset}px`;
|
|
273
|
-
container.style.top = "auto";
|
|
274
|
-
container.style.right = "auto";
|
|
275
|
-
container.style.transform = "none";
|
|
276
|
-
}
|
|
255
|
+
container.style.left = `${this.LEFT_OFFSET}px`;
|
|
256
|
+
container.style.bottom = `${dynamicBottomOffset}px`;
|
|
257
|
+
container.style.top = "auto";
|
|
258
|
+
container.style.right = "auto";
|
|
277
259
|
container.style.pointerEvents = "none";
|
|
278
260
|
container.style.width = "auto";
|
|
279
261
|
container.style.height = "auto";
|
|
@@ -225,8 +225,8 @@ var PaymentResultToast = (0, import_react.memo)((props) => {
|
|
|
225
225
|
mask,
|
|
226
226
|
maskClosable,
|
|
227
227
|
closable: false,
|
|
228
|
-
className: getBaseClassName(`${className} ${statusClassName}
|
|
229
|
-
wrapClassName:
|
|
228
|
+
className: getBaseClassName(`${className} ${statusClassName}`),
|
|
229
|
+
wrapClassName: "toast-modal-wrap",
|
|
230
230
|
style: {
|
|
231
231
|
...height ? { height: `${height}px` } : {},
|
|
232
232
|
// 确保Modal不会被默认定位影响
|
|
@@ -246,8 +246,8 @@ var PaymentResultToast = (0, import_react.memo)((props) => {
|
|
|
246
246
|
focusTriggerAfterClose: false,
|
|
247
247
|
transitionName: "",
|
|
248
248
|
maskTransitionName: "",
|
|
249
|
-
centered:
|
|
250
|
-
getContainer:
|
|
249
|
+
centered: false,
|
|
250
|
+
getContainer: false
|
|
251
251
|
},
|
|
252
252
|
/* @__PURE__ */ import_react.default.createElement(
|
|
253
253
|
"div",
|
|
@@ -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
|
|
|
@@ -48,7 +48,7 @@ var SearchAndClientModule = (props) => {
|
|
|
48
48
|
const bookingTicket = (0, import_pisellos.useBookingTicket)();
|
|
49
49
|
const handleSearch = (0, import_ahooks.useDebounceFn)(
|
|
50
50
|
async (keyword) => {
|
|
51
|
-
var _a, _b, _c, _d
|
|
51
|
+
var _a, _b, _c, _d;
|
|
52
52
|
if (!!keyword) {
|
|
53
53
|
setLoading(true);
|
|
54
54
|
try {
|
|
@@ -61,18 +61,9 @@ var SearchAndClientModule = (props) => {
|
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
63
|
if ("type" in res && res.type == "walletCode") {
|
|
64
|
-
if (disabledSwitch) {
|
|
65
|
-
(_b = Toast == null ? void 0 : Toast.info) == null ? void 0 : _b.call(
|
|
66
|
-
Toast,
|
|
67
|
-
import_utils.locales.getText(
|
|
68
|
-
"pisell2.checkout.client-card.tip.partially-paid"
|
|
69
|
-
)
|
|
70
|
-
);
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
64
|
const { customer, ...rest } = res.data;
|
|
74
65
|
if (!customer) {
|
|
75
|
-
(
|
|
66
|
+
(_b = Toast == null ? void 0 : Toast.info) == null ? void 0 : _b.call(
|
|
76
67
|
Toast,
|
|
77
68
|
import_utils.locales.getText("pisell2.checkout.wallet-pass-module.no-result")
|
|
78
69
|
);
|
|
@@ -82,7 +73,7 @@ var SearchAndClientModule = (props) => {
|
|
|
82
73
|
...customer,
|
|
83
74
|
latest_wallet_detail: rest
|
|
84
75
|
};
|
|
85
|
-
(
|
|
76
|
+
(_d = (_c = clientCardRef.current) == null ? void 0 : _c.handleSetClient) == null ? void 0 : _d.call(_c, _customer, {
|
|
86
77
|
sameClientTip: import_utils.locales.getText(
|
|
87
78
|
"pisell2.checkout.client-card.tip.same-client"
|
|
88
79
|
)
|
|
@@ -139,23 +130,6 @@ var SearchAndClientModule = (props) => {
|
|
|
139
130
|
size: "default"
|
|
140
131
|
}
|
|
141
132
|
};
|
|
142
|
-
if (disabledSwitch === true) {
|
|
143
|
-
_props = {
|
|
144
|
-
open: false,
|
|
145
|
-
buttonProps: {
|
|
146
|
-
icon,
|
|
147
|
-
size: "default",
|
|
148
|
-
onClick: () => {
|
|
149
|
-
var _a;
|
|
150
|
-
(_a = Toast == null ? void 0 : Toast.info) == null ? void 0 : _a.call(
|
|
151
|
-
Toast,
|
|
152
|
-
import_utils.locales.getText("pisell2.checkout.client-card.tip.partially-paid")
|
|
153
|
-
);
|
|
154
|
-
},
|
|
155
|
-
style: { cursor: "not-allowed" }
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
133
|
return _props;
|
|
160
134
|
}, [Toast, disabledSwitch]);
|
|
161
135
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -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;
|
|
@@ -192,7 +192,6 @@ var locales_default = {
|
|
|
192
192
|
"pisell2.checkout.modal.close-price-adjustment": "Close price adjustment modal",
|
|
193
193
|
"pisell2.checkout.modal.reset-price-adjustment": "Reset",
|
|
194
194
|
"pisell2.checkout.modal.done-price-adjustment": "Done",
|
|
195
|
-
"pisell2.checkout.modal.price-adjustment-tips": "Changing amount will update order total",
|
|
196
195
|
// Send Payment Link Modal
|
|
197
196
|
"pisell2.checkout.send-payment-link.modal-title": "Send Payment Link",
|
|
198
197
|
"pisell2.checkout.send-payment-link.email-address": "Email Address",
|
|
@@ -211,7 +210,6 @@ var locales_default = {
|
|
|
211
210
|
"pisell2.amount-summary.amount-cannot-be-zero": "The amount cannot be 0",
|
|
212
211
|
// Order sync errors
|
|
213
212
|
"pisell2.checkout.order-sync-failed": "Order sync failed, please check your network",
|
|
214
|
-
"pisell2.checkout.order-create-failed": "Order create failed, please refresh app",
|
|
215
213
|
"pisell2.checkout.sync-retry-hint": "Network error, please click the retry button to resync the order",
|
|
216
214
|
"pisell2.checkout.tips": "Tips",
|
|
217
215
|
"retry": "Retry",
|
|
@@ -383,7 +381,6 @@ var locales_default = {
|
|
|
383
381
|
"pisell2.checkout.modal.close-price-adjustment": "关闭价格调整弹窗",
|
|
384
382
|
"pisell2.checkout.modal.reset-price-adjustment": "重置",
|
|
385
383
|
"pisell2.checkout.modal.done-price-adjustment": "完成",
|
|
386
|
-
"pisell2.checkout.modal.price-adjustment-tips": "修改金额将更新订单总额",
|
|
387
384
|
// Send Payment Link Modal
|
|
388
385
|
"pisell2.checkout.send-payment-link.modal-title": "发送支付链接",
|
|
389
386
|
"pisell2.checkout.send-payment-link.email-address": "邮箱地址",
|
|
@@ -418,7 +415,6 @@ var locales_default = {
|
|
|
418
415
|
"pisell2.amount-summary.amount-cannot-be-zero": "金额不能为0",
|
|
419
416
|
// Order sync errors
|
|
420
417
|
"pisell2.checkout.order-sync-failed": "订单同步失败,请检查网络",
|
|
421
|
-
"pisell2.checkout.order-create-failed": "订单创建失败,请重启APP",
|
|
422
418
|
"pisell2.checkout.sync-retry-hint": "网络异常,请点击重试按钮重新同步订单",
|
|
423
419
|
"pisell2.checkout.tips": "提示",
|
|
424
420
|
"retry": "重试",
|
|
@@ -606,7 +602,6 @@ var locales_default = {
|
|
|
606
602
|
"pisell2.checkout.modal.close-price-adjustment": "關閉價格調整彈窗",
|
|
607
603
|
"pisell2.checkout.modal.reset-price-adjustment": "重置",
|
|
608
604
|
"pisell2.checkout.modal.done-price-adjustment": "完成",
|
|
609
|
-
"pisell2.checkout.modal.price-adjustment-tips": "修改金額將更新訂單總額",
|
|
610
605
|
// Send Payment Link Modal
|
|
611
606
|
"pisell2.checkout.send-payment-link.modal-title": "發送支付鏈接",
|
|
612
607
|
"pisell2.checkout.send-payment-link.email-address": "郵箱地址",
|
|
@@ -625,7 +620,6 @@ var locales_default = {
|
|
|
625
620
|
"pisell2.amount-summary.amount-cannot-be-zero": "金額不能為0",
|
|
626
621
|
// Order sync errors
|
|
627
622
|
"pisell2.checkout.order-sync-failed": "訂單同步失敗,請檢查網絡",
|
|
628
|
-
"pisell2.checkout.order-create-failed": "订单创建失败,请重启APP",
|
|
629
623
|
"pisell2.checkout.sync-retry-hint": "網絡異常,請點擊重試按鈕重新同步訂單",
|
|
630
624
|
"pisell2.checkout.tips": "提示",
|
|
631
625
|
"retry": "重試",
|
|
@@ -150,7 +150,6 @@ var displayPaymentResultToast = async (params, config) => {
|
|
|
150
150
|
const { getData, onToastClose } = config;
|
|
151
151
|
if (paymentStatus === "paid") {
|
|
152
152
|
await (0, import_PaymentResultToast.showPaymentResultToastSuccess)({
|
|
153
|
-
mask: !(autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
154
153
|
title: calculateTitle(paymentStatus),
|
|
155
154
|
subtitle: calculateSubtitle(
|
|
156
155
|
paymentStatus,
|
|
@@ -160,18 +159,16 @@ var displayPaymentResultToast = async (params, config) => {
|
|
|
160
159
|
),
|
|
161
160
|
autoClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
162
161
|
autoCloseDelay: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoCloseDelay) || 3e3,
|
|
163
|
-
clickOutsideToClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
164
162
|
showCountdownProgress: true,
|
|
165
163
|
actionButtons: actionButtons || [],
|
|
166
164
|
onClose: onToastClose || (() => {
|
|
167
165
|
}),
|
|
168
166
|
// 提供默认空函数
|
|
169
|
-
closable:
|
|
167
|
+
closable: false
|
|
170
168
|
// 控制关闭按钮显示
|
|
171
169
|
});
|
|
172
170
|
} else if (paymentStatus === "partially_paid") {
|
|
173
171
|
await (0, import_PaymentResultToast.showPaymentResultToastSuccess)({
|
|
174
|
-
mask: !(autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
175
172
|
title: calculateTitle(paymentStatus),
|
|
176
173
|
subtitle: calculateSubtitle(
|
|
177
174
|
paymentStatus,
|
|
@@ -181,16 +178,12 @@ var displayPaymentResultToast = async (params, config) => {
|
|
|
181
178
|
),
|
|
182
179
|
autoClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
183
180
|
actionButtons: actionButtons || [],
|
|
184
|
-
clickOutsideToClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
185
|
-
closable: !(autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose),
|
|
186
|
-
// 控制关闭按钮显示
|
|
187
181
|
onClose: onToastClose || (() => {
|
|
188
182
|
})
|
|
189
183
|
// 提供默认空函数
|
|
190
184
|
});
|
|
191
185
|
} else if (paymentStatus === "failed" || paymentStatus === "error") {
|
|
192
186
|
await (0, import_PaymentResultToast.showPaymentResultToastFailed)({
|
|
193
|
-
mask: !(autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
194
187
|
title: calculateTitle(paymentStatus, failureReason),
|
|
195
188
|
subtitle: calculateSubtitle(
|
|
196
189
|
paymentStatus,
|
|
@@ -200,9 +193,6 @@ var displayPaymentResultToast = async (params, config) => {
|
|
|
200
193
|
),
|
|
201
194
|
autoClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
202
195
|
actionButtons: actionButtons || [],
|
|
203
|
-
clickOutsideToClose: (autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose) || false,
|
|
204
|
-
closable: !(autoCloseConfig == null ? void 0 : autoCloseConfig.autoClose),
|
|
205
|
-
// 控制关闭按钮显示
|
|
206
196
|
onClose: onToastClose || (() => {
|
|
207
197
|
})
|
|
208
198
|
// 提供默认空函数
|
|
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"loading" | "
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
@@ -41,7 +41,6 @@ var import_const = require("../../const");
|
|
|
41
41
|
var import_const2 = require("../const");
|
|
42
42
|
var GlobalTimeout = 1e3 * 60 * 2;
|
|
43
43
|
var RequestTimeout = 1e3 * 5;
|
|
44
|
-
var QUERY_INTERVAL = 1e3 * 2;
|
|
45
44
|
var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
46
45
|
const dispatch = (0, import_store.useDispatch)();
|
|
47
46
|
const { numRef, modeRef, deviceRef, orderIdRef } = (0, import_hooks.useStoreRef)();
|
|
@@ -57,7 +56,6 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
|
57
56
|
const startTimeRef = (0, import_react.useRef)(null);
|
|
58
57
|
const isQueryFinishedRef = (0, import_react.useRef)(true);
|
|
59
58
|
const queryIdRef = (0, import_react.useRef)(null);
|
|
60
|
-
const queryIntervalTimerRef = (0, import_react.useRef)(null);
|
|
61
59
|
const _resultQuery = async () => {
|
|
62
60
|
var _a, _b;
|
|
63
61
|
if (controllerRef.current) {
|
|
@@ -109,9 +107,9 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
|
109
107
|
console.log("交易状态为0需要继续查询");
|
|
110
108
|
_log("Querying" /* Querying */, result);
|
|
111
109
|
isQueryFinishedRef.current = false;
|
|
112
|
-
|
|
110
|
+
setTimeout(() => {
|
|
113
111
|
_resultQuery();
|
|
114
|
-
},
|
|
112
|
+
}, 1500);
|
|
115
113
|
return;
|
|
116
114
|
}
|
|
117
115
|
if (data.status < 0) {
|
|
@@ -147,18 +145,18 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
|
147
145
|
_log("AbortError" /* AbortError */);
|
|
148
146
|
console.log("Error: 请求被取消,将继续查询");
|
|
149
147
|
isQueryFinishedRef.current = false;
|
|
150
|
-
|
|
148
|
+
setTimeout(() => {
|
|
151
149
|
_resultQuery();
|
|
152
|
-
},
|
|
150
|
+
}, 1500);
|
|
153
151
|
return;
|
|
154
152
|
}
|
|
155
153
|
if (!(error == null ? void 0 : error.code) || `${error.code}` === import_const.PayStatus.Timeout) {
|
|
156
154
|
_log("NetworkError" /* NetworkError */);
|
|
157
155
|
console.log("Error: 网关类报错,将继续查询");
|
|
158
156
|
isQueryFinishedRef.current = false;
|
|
159
|
-
|
|
157
|
+
setTimeout(() => {
|
|
160
158
|
_resultQuery();
|
|
161
|
-
},
|
|
159
|
+
}, 1500);
|
|
162
160
|
return;
|
|
163
161
|
}
|
|
164
162
|
_log("Error" /* Error */, error);
|
|
@@ -205,10 +203,6 @@ var useTimeResultQuery = (api, resultCheck, handleLinklySuccess) => {
|
|
|
205
203
|
clearTimeout(requestTimeoutIdRef.current);
|
|
206
204
|
requestTimeoutIdRef.current = null;
|
|
207
205
|
}
|
|
208
|
-
if (queryIntervalTimerRef.current) {
|
|
209
|
-
clearTimeout(queryIntervalTimerRef.current);
|
|
210
|
-
queryIntervalTimerRef.current = null;
|
|
211
|
-
}
|
|
212
206
|
if (controllerRef.current) {
|
|
213
207
|
controllerRef.current.abort();
|
|
214
208
|
controllerRef.current = null;
|