@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
|
@@ -17,7 +17,6 @@ import React, { useContext, useEffect, useImperativeHandle, useMemo, useState, f
|
|
|
17
17
|
import { useMemoizedFn, useDebounceFn } from 'ahooks';
|
|
18
18
|
import { PisellModal, useToast } from '@pisell/materials';
|
|
19
19
|
import { locales } from '@pisell/utils';
|
|
20
|
-
import { cloneDeep } from 'lodash';
|
|
21
20
|
import localeTexts from "./locales";
|
|
22
21
|
import ClientCard from "../../../../plus/clientCard";
|
|
23
22
|
import ClientSearch from "../../../../plus/clinetSearch";
|
|
@@ -187,40 +186,12 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
187
186
|
|
|
188
187
|
// 处理查看客户
|
|
189
188
|
var handleViewClient = function handleViewClient(data) {
|
|
190
|
-
var newSelectedCustomer = cloneDeep(selectedCustomer);
|
|
191
189
|
state.action({
|
|
192
190
|
type: 'pisell1.handleOpenCustomerModal',
|
|
193
191
|
data: {
|
|
194
192
|
id: state.client.value.id
|
|
195
193
|
},
|
|
196
|
-
callback: function callback(data) {
|
|
197
|
-
console.log('data>>>>>', data);
|
|
198
|
-
var _selectedCustomer = _objectSpread(_objectSpread({}, newSelectedCustomer || {}), {}, {
|
|
199
|
-
display_name: (data === null || data === void 0 ? void 0 : data.display_name) || "",
|
|
200
|
-
email: (data === null || data === void 0 ? void 0 : data.email) || "",
|
|
201
|
-
phone: (data === null || data === void 0 ? void 0 : data.phone) || "",
|
|
202
|
-
nickname: (data === null || data === void 0 ? void 0 : data.nickname) || "",
|
|
203
|
-
country_calling_code: (data === null || data === void 0 ? void 0 : data.country_calling_code) || "",
|
|
204
|
-
first_name: (data === null || data === void 0 ? void 0 : data.first_name) || "",
|
|
205
|
-
last_name: (data === null || data === void 0 ? void 0 : data.last_name) || "",
|
|
206
|
-
contacts_info: (data === null || data === void 0 ? void 0 : data.contacts_info) || null
|
|
207
|
-
});
|
|
208
|
-
selectCustomer(_selectedCustomer);
|
|
209
|
-
|
|
210
|
-
// 如果联系信息发生变动需要更新
|
|
211
|
-
if (JSON.stringify((newSelectedCustomer === null || newSelectedCustomer === void 0 ? void 0 : newSelectedCustomer.contacts_info) || {}) !== JSON.stringify((data === null || data === void 0 ? void 0 : data.contacts_info) || {})) {
|
|
212
|
-
dispatch({
|
|
213
|
-
type: 'setContactsInfo',
|
|
214
|
-
payload: {
|
|
215
|
-
value: (data === null || data === void 0 ? void 0 : data.contacts_info) || {},
|
|
216
|
-
client_id: data === null || data === void 0 ? void 0 : data.id
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// 重置客户搜索框内容
|
|
222
|
-
handleSearchClient('');
|
|
223
|
-
}
|
|
194
|
+
callback: function callback(data) {}
|
|
224
195
|
});
|
|
225
196
|
};
|
|
226
197
|
|
|
@@ -350,6 +321,11 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
350
321
|
setHandleSetClient(handleSetClient);
|
|
351
322
|
}
|
|
352
323
|
}, [isActive]);
|
|
324
|
+
useEffect(function () {
|
|
325
|
+
return function () {
|
|
326
|
+
setHandleSetClient(null);
|
|
327
|
+
};
|
|
328
|
+
}, [isActive]);
|
|
353
329
|
var tags = useMemo(function () {
|
|
354
330
|
var _latest_wallet_detail;
|
|
355
331
|
if (!selectedCustomer) return;
|
|
@@ -33,9 +33,9 @@ import classNames from 'classnames';
|
|
|
33
33
|
import useCreateBookingPageHeader from "../hooks/useCreateBookingPageHeader";
|
|
34
34
|
import { getLocale } from "../../../utils/locales";
|
|
35
35
|
import { useDebounceEffect } from 'ahooks';
|
|
36
|
+
import ContactInfoMode from "./service/contactInfoMode";
|
|
36
37
|
import CartClientCard from "./cartClientCard";
|
|
37
38
|
import { Iconfont, useToast } from '@pisell/materials';
|
|
38
|
-
import ContactInfoMode from "./service/contactInfoMode";
|
|
39
39
|
var defaultModules = {
|
|
40
40
|
client: 1,
|
|
41
41
|
date: 1,
|
|
@@ -30,7 +30,7 @@ import useEngineContext from "../../../../../hooks/useEngineContext";
|
|
|
30
30
|
import { getProductDetail } from "../../../info/service/serve";
|
|
31
31
|
import { getIsBundleOrCombination } from "../../../info/utils";
|
|
32
32
|
import { getProductExtend } from "./utils";
|
|
33
|
-
import { formatProductListByCategory, getIsEject, getIsOnlySession,
|
|
33
|
+
import { formatProductListByCategory, getIsEject, getIsOnlySession, getProductTotalPrice, isSessionProduct, request } from "../../../utils";
|
|
34
34
|
import { locales, getUniqueId } from '@pisell/utils';
|
|
35
35
|
import { useUpdateEffect } from 'ahooks';
|
|
36
36
|
import { isNormalProductByDurationSchedule } from "../../../info/service2/utils";
|
|
@@ -297,12 +297,13 @@ var Info = function Info(props) {
|
|
|
297
297
|
_extend: {
|
|
298
298
|
start_date: state.date.value,
|
|
299
299
|
quantity: (e === null || e === void 0 ? void 0 : e.quantity) || 1,
|
|
300
|
+
price: _detail.price,
|
|
300
301
|
product_name: item.title,
|
|
301
302
|
other: other
|
|
302
303
|
},
|
|
303
304
|
new: 1
|
|
304
305
|
});
|
|
305
|
-
|
|
306
|
+
console.log(cacheItem, 'cacheItem', e);
|
|
306
307
|
var _total = getProductTotalPrice(cacheItem);
|
|
307
308
|
// 用于折扣 可修改
|
|
308
309
|
cacheItem._extend.total = _total;
|
|
@@ -2,7 +2,6 @@ import React, { forwardRef, useContext, useImperativeHandle, useRef } from 'reac
|
|
|
2
2
|
import { useMemoizedFn } from 'ahooks';
|
|
3
3
|
import SkuDetailModal from "../../../../../pro/skuDetailModal";
|
|
4
4
|
import { Context } from "../../../info/model";
|
|
5
|
-
import { setProductPrice } from "../editService/utils";
|
|
6
5
|
var EditNormalService = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
7
6
|
var _useContext = useContext(Context),
|
|
8
7
|
state = _useContext.state,
|
|
@@ -34,11 +33,6 @@ var EditNormalService = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
34
33
|
var _ref2, _state$service2;
|
|
35
34
|
var newProducts = (_ref2 = (state === null || state === void 0 || (_state$service2 = state.service) === null || _state$service2 === void 0 ? void 0 : _state$service2.value) || []) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (item) {
|
|
36
35
|
if (item._id == data._id) {
|
|
37
|
-
var _data$_extend, _data$_extend2;
|
|
38
|
-
data = setProductPrice(data, {
|
|
39
|
-
newTotal: (_data$_extend = data._extend) === null || _data$_extend === void 0 ? void 0 : _data$_extend.total,
|
|
40
|
-
origin_total: (_data$_extend2 = data._extend) === null || _data$_extend2 === void 0 ? void 0 : _data$_extend2.origin_total
|
|
41
|
-
});
|
|
42
36
|
return data;
|
|
43
37
|
}
|
|
44
38
|
return item;
|
|
@@ -37,7 +37,6 @@ import { editSessionProduct } from "../../../info/utils";
|
|
|
37
37
|
import { deleteCacheParams, getProductTotalPrice, getServiceTimes, isSessionProduct } from "../../../utils";
|
|
38
38
|
import { getErrorList, getIsNoSpecAndPackage } from "../../utilsByBooking";
|
|
39
39
|
import { formatResources, getDurationProps, getFlexibleOption, getTimeObj, setDefaultCapacitys } from "../addService/utils";
|
|
40
|
-
import { setProductPrice } from "./utils";
|
|
41
40
|
import NoteModal from "../../../../../plus/noteModal";
|
|
42
41
|
import { DiscountKeyboard } from "../../../../../pro/priceKeyboard";
|
|
43
42
|
var submitLock = false;
|
|
@@ -241,7 +240,7 @@ var Info = function Info(_, ref) {
|
|
|
241
240
|
* @Date: 2024-01-09 14:04
|
|
242
241
|
*/
|
|
243
242
|
var onFinish = function onFinish(values) {
|
|
244
|
-
var _resourcesRef$current, _item$_extend,
|
|
243
|
+
var _resourcesRef$current, _item$_extend, _state$service$cacheI3, _window$closeBookingE2, _window2;
|
|
245
244
|
var isSuccess = (_resourcesRef$current = resourcesRef.current) === null || _resourcesRef$current === void 0 ? void 0 : _resourcesRef$current.check();
|
|
246
245
|
if (isShowTimeAndResource && !isSuccess) {
|
|
247
246
|
return;
|
|
@@ -278,11 +277,7 @@ var Info = function Info(_, ref) {
|
|
|
278
277
|
_item._extend = _extend;
|
|
279
278
|
_item._time = new Date().getTime();
|
|
280
279
|
_item._serviceKey = genServiceKey(_item);
|
|
281
|
-
var _id =
|
|
282
|
-
_item = setProductPrice(_item, {
|
|
283
|
-
newTotal: values.total,
|
|
284
|
-
origin_total: (_item$_extend2 = _item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.origin_total
|
|
285
|
-
});
|
|
280
|
+
var _id = _item === null || _item === void 0 ? void 0 : _item._id;
|
|
286
281
|
|
|
287
282
|
// 判断是新增还是编辑
|
|
288
283
|
if (!_list.some(function (d) {
|
|
@@ -293,12 +288,7 @@ var Info = function Info(_, ref) {
|
|
|
293
288
|
} else {
|
|
294
289
|
// 手动改价时移除优惠券使用
|
|
295
290
|
if (isChangeTotal.current) {
|
|
296
|
-
var _item$_extend3;
|
|
297
291
|
delete _item.discount_list;
|
|
298
|
-
_item = setProductPrice(_item, {
|
|
299
|
-
newTotal: values.total,
|
|
300
|
-
origin_total: (_item$_extend3 = _item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.origin_total
|
|
301
|
-
});
|
|
302
292
|
}
|
|
303
293
|
_list = _list.map(function (d) {
|
|
304
294
|
return d._id === _id ? _objectSpread(_objectSpread({}, _item), {}, {
|
|
@@ -493,11 +483,11 @@ var Info = function Info(_, ref) {
|
|
|
493
483
|
var isSession = isSessionProduct(item);
|
|
494
484
|
var sessionValue = {};
|
|
495
485
|
if (isSession) {
|
|
496
|
-
var _item$
|
|
486
|
+
var _item$_extend2, _item$_extend3, _item$_extend4;
|
|
497
487
|
sessionValue.startEndTime = {
|
|
498
|
-
startDate: item === null || item === void 0 || (_item$
|
|
499
|
-
endDate: item === null || item === void 0 || (_item$
|
|
500
|
-
duration: item === null || item === void 0 || (_item$
|
|
488
|
+
startDate: item === null || item === void 0 || (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.start_date,
|
|
489
|
+
endDate: item === null || item === void 0 || (_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.end_date,
|
|
490
|
+
duration: item === null || item === void 0 || (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.duration
|
|
501
491
|
};
|
|
502
492
|
}
|
|
503
493
|
|
|
@@ -11,18 +11,3 @@ export declare const getAutoAllocationStorage: (id: string | number) => any;
|
|
|
11
11
|
export declare const setAutoAllocationStorage: (data: {
|
|
12
12
|
[key: string]: boolean;
|
|
13
13
|
}) => void;
|
|
14
|
-
/**
|
|
15
|
-
* 手动折扣后给商品价格和子商品价格重新计算
|
|
16
|
-
*
|
|
17
|
-
* 计算逻辑:
|
|
18
|
-
* 1. 子商品(bundle + option)按折扣比例计算,直接截取两位小数(不四舍五入)
|
|
19
|
-
* 2. 主商品价格 = newTotal - 所有子商品价格总和(确保总价精确等于 newTotal)
|
|
20
|
-
*
|
|
21
|
-
* @param cacheItem - 缓存的商品项
|
|
22
|
-
* @param newTotal - 折扣后的新总价
|
|
23
|
-
* @param origin_total - 原始总价
|
|
24
|
-
*/
|
|
25
|
-
export declare const setProductPrice: (cacheItem: any, { newTotal, origin_total }: {
|
|
26
|
-
newTotal: number;
|
|
27
|
-
origin_total: number;
|
|
28
|
-
}) => any;
|
|
@@ -14,9 +14,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
14
14
|
判断是否需要进入编辑服务页
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { isArr } from "@pisell/utils";
|
|
18
17
|
import { isBoolean } from "@pisell/utils";
|
|
19
|
-
import Decimal from "decimal.js";
|
|
20
18
|
var isNewService = function isNewService(service) {
|
|
21
19
|
return !service.new && service._extend.endDate;
|
|
22
20
|
};
|
|
@@ -54,68 +52,4 @@ export var setAutoAllocationStorage = function setAutoAllocationStorage(data) {
|
|
|
54
52
|
} else {
|
|
55
53
|
localStorage.setItem('resource-auto-allocation', JSON.stringify(_objectSpread({}, data)));
|
|
56
54
|
}
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* 手动折扣后给商品价格和子商品价格重新计算
|
|
61
|
-
*
|
|
62
|
-
* 计算逻辑:
|
|
63
|
-
* 1. 子商品(bundle + option)按折扣比例计算,直接截取两位小数(不四舍五入)
|
|
64
|
-
* 2. 主商品价格 = newTotal - 所有子商品价格总和(确保总价精确等于 newTotal)
|
|
65
|
-
*
|
|
66
|
-
* @param cacheItem - 缓存的商品项
|
|
67
|
-
* @param newTotal - 折扣后的新总价
|
|
68
|
-
* @param origin_total - 原始总价
|
|
69
|
-
*/
|
|
70
|
-
export var setProductPrice = function setProductPrice(cacheItem, _ref2) {
|
|
71
|
-
var _cacheItem$_extend$ot, _cacheItem$_extend$ot2, _cacheItem$_extend$ot4, _cacheItem$_extend$ot5;
|
|
72
|
-
var newTotal = _ref2.newTotal,
|
|
73
|
-
origin_total = _ref2.origin_total;
|
|
74
|
-
// 计算折扣比例
|
|
75
|
-
var discountRatio = new Decimal(newTotal).div(new Decimal(origin_total));
|
|
76
|
-
|
|
77
|
-
// 用于累加子商品总价c
|
|
78
|
-
var subTotal = new Decimal(0);
|
|
79
|
-
|
|
80
|
-
// 处理 bundle 子商品
|
|
81
|
-
if ((_cacheItem$_extend$ot = cacheItem._extend.other) !== null && _cacheItem$_extend$ot !== void 0 && _cacheItem$_extend$ot.bundle && isArr((_cacheItem$_extend$ot2 = cacheItem._extend.other) === null || _cacheItem$_extend$ot2 === void 0 ? void 0 : _cacheItem$_extend$ot2.bundle)) {
|
|
82
|
-
var _cacheItem$_extend$ot3;
|
|
83
|
-
(_cacheItem$_extend$ot3 = cacheItem._extend.other) === null || _cacheItem$_extend$ot3 === void 0 || (_cacheItem$_extend$ot3 = _cacheItem$_extend$ot3.bundle) === null || _cacheItem$_extend$ot3 === void 0 || _cacheItem$_extend$ot3.forEach(function (bundle) {
|
|
84
|
-
var _ref3, _bundle$num;
|
|
85
|
-
// 计算新价格,直接截取两位小数(不四舍五入)
|
|
86
|
-
var newPrice = new Decimal(bundle.original_price || bundle.price).mul(discountRatio).toDecimalPlaces(2, Decimal.ROUND_DOWN).toNumber();
|
|
87
|
-
|
|
88
|
-
// 获取数量,优先取 num,再取 quantity,默认为 1
|
|
89
|
-
var quantity = (_ref3 = (_bundle$num = bundle.num) !== null && _bundle$num !== void 0 ? _bundle$num : bundle.quantity) !== null && _ref3 !== void 0 ? _ref3 : 1;
|
|
90
|
-
|
|
91
|
-
// 累加到子商品总价
|
|
92
|
-
subTotal = subTotal.add(new Decimal(newPrice).mul(quantity));
|
|
93
|
-
|
|
94
|
-
// 设置新价格
|
|
95
|
-
bundle.price = newPrice;
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// 处理 option 子商品
|
|
100
|
-
if ((_cacheItem$_extend$ot4 = cacheItem._extend.other) !== null && _cacheItem$_extend$ot4 !== void 0 && _cacheItem$_extend$ot4.option && isArr((_cacheItem$_extend$ot5 = cacheItem._extend.other) === null || _cacheItem$_extend$ot5 === void 0 ? void 0 : _cacheItem$_extend$ot5.option)) {
|
|
101
|
-
var _cacheItem$_extend$ot6;
|
|
102
|
-
(_cacheItem$_extend$ot6 = cacheItem._extend.other) === null || _cacheItem$_extend$ot6 === void 0 || (_cacheItem$_extend$ot6 = _cacheItem$_extend$ot6.option) === null || _cacheItem$_extend$ot6 === void 0 || _cacheItem$_extend$ot6.forEach(function (option) {
|
|
103
|
-
var _ref4, _option$num;
|
|
104
|
-
// 计算新价格,直接截取两位小数(不四舍五入)
|
|
105
|
-
var newPrice = new Decimal(option.price).mul(discountRatio).toDecimalPlaces(2, Decimal.ROUND_DOWN).toNumber();
|
|
106
|
-
|
|
107
|
-
// 获取数量,优先取 num,再取 quantity,默认为 1
|
|
108
|
-
var quantity = (_ref4 = (_option$num = option.num) !== null && _option$num !== void 0 ? _option$num : option.quantity) !== null && _ref4 !== void 0 ? _ref4 : 1;
|
|
109
|
-
|
|
110
|
-
// 累加到子商品总价
|
|
111
|
-
subTotal = subTotal.add(new Decimal(newPrice).mul(quantity));
|
|
112
|
-
|
|
113
|
-
// 设置新价格
|
|
114
|
-
option.price = newPrice;
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// 主商品价格 = newTotal - 子商品总价(让主商品吸收精度误差,确保总价精确)
|
|
119
|
-
cacheItem._extend.price = new Decimal(newTotal).sub(subTotal).toNumber();
|
|
120
|
-
return cacheItem;
|
|
121
55
|
};
|
|
@@ -152,7 +152,6 @@ export declare const getIsOnlySession: (item: any) => boolean;
|
|
|
152
152
|
* @Date: 2024-01-26 14:09
|
|
153
153
|
*/
|
|
154
154
|
export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
|
|
155
|
-
export declare const getMainPrice: (item: any, price?: number) => number;
|
|
156
155
|
export declare const getProductTotalPrice: (item: any) => number;
|
|
157
156
|
/**
|
|
158
157
|
* @title: 判断 duration
|
|
@@ -18,7 +18,7 @@ import { locales } from '@pisell/utils';
|
|
|
18
18
|
import { isDayBooking, formatDayDate } from "./info/service2/utils";
|
|
19
19
|
import { intersectionBy } from 'lodash';
|
|
20
20
|
import { getAppointmentTimingPreference } from "./info2/utilsByBooking";
|
|
21
|
-
import Decimal from
|
|
21
|
+
import Decimal from 'decimal.js';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @title: 高阶函数结果缓存(Memoization)
|
|
@@ -789,24 +789,11 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
|
|
|
789
789
|
return _extend;
|
|
790
790
|
};
|
|
791
791
|
|
|
792
|
-
// 获取主商品价格 包含组合规格
|
|
793
|
-
export var getMainPrice = function getMainPrice(item, price) {
|
|
794
|
-
var _item$_extend;
|
|
795
|
-
var newPrice = new Decimal(price || item._extend.price || 0);
|
|
796
|
-
var other = (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.other;
|
|
797
|
-
|
|
798
|
-
// 多规格
|
|
799
|
-
if (other !== null && other !== void 0 && other.product_variant_id) {
|
|
800
|
-
newPrice = new Decimal((other === null || other === void 0 ? void 0 : other.price) || 0);
|
|
801
|
-
}
|
|
802
|
-
return newPrice.toNumber();
|
|
803
|
-
};
|
|
804
|
-
|
|
805
792
|
// 商品价格: (商品价格 + (套餐价格 + 单规格价格 * 单规格数量) * 套餐数量 + 单规格价格 * 单规格数量) * 商品数量
|
|
806
793
|
export var getProductTotalPrice = function getProductTotalPrice(item) {
|
|
807
|
-
var _item$
|
|
794
|
+
var _item$_extend;
|
|
808
795
|
var price = new Decimal(item._extend.price || 0);
|
|
809
|
-
var other = (_item$
|
|
796
|
+
var other = (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.other;
|
|
810
797
|
|
|
811
798
|
// 多规格
|
|
812
799
|
if (other !== null && other !== void 0 && other.product_variant_id) {
|
|
@@ -15,24 +15,16 @@ interface PaymentModalProps {
|
|
|
15
15
|
data?: PaymentModalData;
|
|
16
16
|
callback?: (result: any) => void;
|
|
17
17
|
onClose?: (reset?: boolean) => void;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
onChangeShopDiscount?: (discount: string) => void;
|
|
24
|
-
onChangeOrderNote?: (note: string) => void;
|
|
25
|
-
onDeleteOrderNote?: () => void;
|
|
18
|
+
dispatch?: (action: {
|
|
19
|
+
type: string;
|
|
20
|
+
payload?: any;
|
|
21
|
+
}) => void;
|
|
22
|
+
state?: any;
|
|
26
23
|
}
|
|
27
24
|
interface PaymentModalMainProps extends PaymentModalProps {
|
|
28
25
|
onClose?: (reset?: boolean) => void;
|
|
29
26
|
setEditCartMode?: (order_id: number, payData: any, closeModal: boolean) => void;
|
|
30
27
|
editOrderId?: number;
|
|
31
|
-
config?: {
|
|
32
|
-
showHeaderCenter?: boolean;
|
|
33
|
-
showHeaderRightButton?: boolean;
|
|
34
|
-
disabledSwitchClient?: boolean;
|
|
35
|
-
};
|
|
36
28
|
}
|
|
37
29
|
declare const PaymentModal: React.FC<PaymentModalMainProps>;
|
|
38
30
|
export type { PaymentModalData, PaymentModalProps };
|