@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
|
@@ -42,7 +42,6 @@ var import_helper = require("../helper");
|
|
|
42
42
|
var import_hooks = require("../hooks");
|
|
43
43
|
var import_store = require("../store");
|
|
44
44
|
var import_hooks2 = require("./hooks");
|
|
45
|
-
var import_payment = require("./payment");
|
|
46
45
|
var POS = ({
|
|
47
46
|
api,
|
|
48
47
|
onChange
|
|
@@ -69,13 +68,6 @@ var POS = ({
|
|
|
69
68
|
const initRef = (0, import_react.useRef)(false);
|
|
70
69
|
const unloadRef = (0, import_react.useRef)(false);
|
|
71
70
|
const [check] = (0, import_hooks2.useValidate)(1e3 * 60);
|
|
72
|
-
const { run: paymentRun, clean: paymentClean } = (0, import_payment.usePayment)({
|
|
73
|
-
payApi: api.pay,
|
|
74
|
-
checkApi: api.check,
|
|
75
|
-
shouldContinue: () => {
|
|
76
|
-
return !(unloadRef.current || !netRef.current);
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
71
|
(0, import_react.useEffect)(() => {
|
|
80
72
|
failRef.current = fail;
|
|
81
73
|
}, [fail]);
|
|
@@ -134,7 +126,7 @@ var POS = ({
|
|
|
134
126
|
);
|
|
135
127
|
};
|
|
136
128
|
(0, import_react.useEffect)(() => {
|
|
137
|
-
var _a, _b
|
|
129
|
+
var _a, _b;
|
|
138
130
|
if (statusRef.current === import_const.StatusEnum.Success || statusRef.current === import_const.StatusEnum.Fail) {
|
|
139
131
|
return;
|
|
140
132
|
}
|
|
@@ -153,98 +145,82 @@ var POS = ({
|
|
|
153
145
|
})
|
|
154
146
|
);
|
|
155
147
|
controllerRef.current = new AbortController();
|
|
156
|
-
const
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
148
|
+
const resultPromise = modeRef.current === import_const.ModeEnum.Pay || modeRef.current === import_const.ModeEnum.FullPay ? api.pay(
|
|
149
|
+
{
|
|
150
|
+
...(custom == null ? void 0 : custom.platform) ? {
|
|
151
|
+
operator_id: custom.operator_id,
|
|
152
|
+
operator_type: custom.operator_type,
|
|
153
|
+
platform: custom.platform,
|
|
154
|
+
custom_payment_id: custom.custom_payment_id,
|
|
155
|
+
service_charge: {
|
|
156
|
+
amount: payRef.current.surMoney,
|
|
157
|
+
percentage: payRef.current.surPercentRate
|
|
158
|
+
},
|
|
159
|
+
original_amount: payRef.current.amount
|
|
160
|
+
} : {},
|
|
161
|
+
order_id: orderIdRef.current,
|
|
162
|
+
amount: payRef.current.total,
|
|
163
|
+
card_reader_type: eftposRef.current,
|
|
164
|
+
card_reader_id: (_a = deviceRef.current) == null ? void 0 : _a.id,
|
|
165
|
+
number: numRef.current,
|
|
166
|
+
pay_param_base64: encodeURIComponent(
|
|
167
|
+
btoa(
|
|
168
|
+
encodeURIComponent(
|
|
169
|
+
JSON.stringify({
|
|
170
|
+
...dataRef.current,
|
|
171
|
+
number: numRef.current
|
|
172
|
+
})
|
|
173
|
+
)
|
|
181
174
|
)
|
|
182
175
|
)
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
176
|
+
},
|
|
177
|
+
{ signal: controllerRef.current.signal }
|
|
178
|
+
) : api.refund(
|
|
179
|
+
{
|
|
180
|
+
order_id: orderIdRef.current,
|
|
181
|
+
amount: amountRef.current,
|
|
182
|
+
card_reader_type: eftposRef.current,
|
|
183
|
+
card_reader_id: (_b = deviceRef.current) == null ? void 0 : _b.id,
|
|
184
|
+
number: numRef.current,
|
|
185
|
+
pay_param_base64: encodeURIComponent(
|
|
186
|
+
btoa(
|
|
187
|
+
encodeURIComponent(
|
|
188
|
+
JSON.stringify({
|
|
189
|
+
...dataRef.current,
|
|
190
|
+
number: numRef.current
|
|
191
|
+
})
|
|
192
|
+
)
|
|
197
193
|
)
|
|
198
194
|
)
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
return Promise.reject(res);
|
|
231
|
-
}).catch((err) => {
|
|
232
|
-
console.log(
|
|
233
|
-
"netRef.current222 = ",
|
|
234
|
-
netRef.current,
|
|
235
|
-
unloadRef.current,
|
|
236
|
-
err
|
|
237
|
-
);
|
|
238
|
-
if (unloadRef.current || !netRef.current) {
|
|
239
|
-
return;
|
|
240
|
-
}
|
|
241
|
-
if (!(err == null ? void 0 : err.code) || `${err.code}` === import_const.PayStatus.Timeout) {
|
|
242
|
-
checkApi();
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
failRef.current(err, true);
|
|
246
|
-
});
|
|
247
|
-
}
|
|
195
|
+
},
|
|
196
|
+
{ signal: controllerRef.current.signal }
|
|
197
|
+
);
|
|
198
|
+
resultPromise.then((res) => {
|
|
199
|
+
console.log("netRef.current111 = ", netRef.current);
|
|
200
|
+
if (unloadRef.current || !netRef.current) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
if (res && `${res.code}` === "200") {
|
|
204
|
+
success(res);
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
return Promise.reject(res);
|
|
208
|
+
}).catch((err) => {
|
|
209
|
+
console.log(
|
|
210
|
+
"netRef.current222 = ",
|
|
211
|
+
netRef.current,
|
|
212
|
+
unloadRef.current,
|
|
213
|
+
err
|
|
214
|
+
);
|
|
215
|
+
if (unloadRef.current || !netRef.current) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
if (!(err == null ? void 0 : err.code) || `${err.code}` === import_const.PayStatus.Timeout) {
|
|
219
|
+
checkApi();
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
failRef.current(err, true);
|
|
223
|
+
});
|
|
248
224
|
}, [api, check, dispatch, onChange]);
|
|
249
225
|
(0, import_react.useEffect)(
|
|
250
226
|
() => () => {
|
|
@@ -254,7 +230,6 @@ var POS = ({
|
|
|
254
230
|
if (clearRef.current) {
|
|
255
231
|
clearTimeout(clearRef.current);
|
|
256
232
|
}
|
|
257
|
-
paymentClean();
|
|
258
233
|
},
|
|
259
234
|
[]
|
|
260
235
|
);
|
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
175
|
type: EActionTypes;
|
|
176
176
|
payload: {
|
|
177
|
-
status: "loading" | "
|
|
177
|
+
status: "loading" | "warn" | "success" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -295,10 +295,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
295
295
|
name?: string | undefined;
|
|
296
296
|
symbol?: string | undefined;
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
|
-
mode?: "
|
|
298
|
+
mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
300
|
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
301
|
-
action?: "
|
|
301
|
+
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
304
304
|
title?: string | undefined;
|
|
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|
|
310
310
|
form?: string | undefined;
|
|
311
|
-
status?: "loading" | "
|
|
311
|
+
status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|
|
@@ -158,12 +158,6 @@ var tyro_default = ({
|
|
|
158
158
|
response: {},
|
|
159
159
|
metadata: {
|
|
160
160
|
receipt: []
|
|
161
|
-
},
|
|
162
|
-
_config: {
|
|
163
|
-
retry: {
|
|
164
|
-
count: 10,
|
|
165
|
-
delay: 500
|
|
166
|
-
}
|
|
167
161
|
}
|
|
168
162
|
}).then((res) => {
|
|
169
163
|
requestIdRef.current = res.data.id;
|
|
@@ -235,12 +229,6 @@ var tyro_default = ({
|
|
|
235
229
|
response: {},
|
|
236
230
|
metadata: {
|
|
237
231
|
receipt: []
|
|
238
|
-
},
|
|
239
|
-
_config: {
|
|
240
|
-
retry: {
|
|
241
|
-
count: 10,
|
|
242
|
-
delay: 500
|
|
243
|
-
}
|
|
244
232
|
}
|
|
245
233
|
}).then((res) => {
|
|
246
234
|
requestIdRef.current = res.data.id;
|
|
@@ -20,5 +20,4 @@ import StepController from './stepController';
|
|
|
20
20
|
import PinModal from './pinModal';
|
|
21
21
|
import PinVerifyModal from './pinVerifyModal';
|
|
22
22
|
import { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from './authentication/admin';
|
|
23
|
-
|
|
24
|
-
export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, Registry, };
|
|
23
|
+
export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, };
|
package/lib/components/index.js
CHANGED
|
@@ -47,7 +47,6 @@ __export(components_exports, {
|
|
|
47
47
|
PinVerifyModal: () => import_pinVerifyModal.default,
|
|
48
48
|
PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
|
|
49
49
|
ProductExtension: () => import_productExtension.default,
|
|
50
|
-
Registry: () => import_registry.default,
|
|
51
50
|
RuleSetting: () => import_ruleSetting.default,
|
|
52
51
|
SaaSAdminAuth: () => import_admin.SaaSAdminAuth,
|
|
53
52
|
SaaSManagermentAuth: () => import_admin.SaaSManagermentAuth,
|
|
@@ -84,7 +83,6 @@ var import_stepController = __toESM(require("./stepController"));
|
|
|
84
83
|
var import_pinModal = __toESM(require("./pinModal"));
|
|
85
84
|
var import_pinVerifyModal = __toESM(require("./pinVerifyModal"));
|
|
86
85
|
var import_admin = require("./authentication/admin");
|
|
87
|
-
var import_registry = __toESM(require("./systemSettings/registry"));
|
|
88
86
|
// Annotate the CommonJS export names for ESM import in node:
|
|
89
87
|
0 && (module.exports = {
|
|
90
88
|
Booking,
|
|
@@ -105,7 +103,6 @@ var import_registry = __toESM(require("./systemSettings/registry"));
|
|
|
105
103
|
PinVerifyModal,
|
|
106
104
|
PisellSelectCustomerModal,
|
|
107
105
|
ProductExtension,
|
|
108
|
-
Registry,
|
|
109
106
|
RuleSetting,
|
|
110
107
|
SaaSAdminAuth,
|
|
111
108
|
SaaSManagermentAuth,
|
|
@@ -35,6 +35,7 @@ module.exports = __toCommonJS(List_exports);
|
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_Tab = __toESM(require("./components/Tab"));
|
|
38
39
|
var import_Pagination = __toESM(require("./components/Pagination"));
|
|
39
40
|
var import_EmptyState = __toESM(require("./components/EmptyState"));
|
|
40
41
|
var import_ScrollLoader = __toESM(require("./components/ScrollLoader"));
|
|
@@ -47,7 +48,6 @@ var import_locales = __toESM(require("./locales"));
|
|
|
47
48
|
var import_useWaterfall = __toESM(require("./hooks/useWaterfall"));
|
|
48
49
|
var import_useListState = require("./hooks/useListState");
|
|
49
50
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
50
|
-
var import_utils = require("./utils");
|
|
51
51
|
var MOCK_LIST_DATA = (() => {
|
|
52
52
|
const mockData = [];
|
|
53
53
|
for (let i = 0; i < 8; i++) {
|
|
@@ -131,7 +131,6 @@ var List = (props) => {
|
|
|
131
131
|
externalCurrentPage: pagination == null ? void 0 : pagination.current,
|
|
132
132
|
tabItems,
|
|
133
133
|
defaultPageSize,
|
|
134
|
-
tabStyle,
|
|
135
134
|
onLoadData
|
|
136
135
|
});
|
|
137
136
|
const { activeTab, isStickyActive } = listState;
|
|
@@ -144,14 +143,6 @@ var List = (props) => {
|
|
|
144
143
|
}
|
|
145
144
|
return fieldValue === targetValue;
|
|
146
145
|
};
|
|
147
|
-
const dataIdMap = (0, import_react.useMemo)(() => {
|
|
148
|
-
return data.reduce((pre, cur) => {
|
|
149
|
-
return {
|
|
150
|
-
...pre,
|
|
151
|
-
[cur.id]: cur
|
|
152
|
-
};
|
|
153
|
-
}, {});
|
|
154
|
-
}, [data]);
|
|
155
146
|
const processedData = (0, import_react.useMemo)(() => {
|
|
156
147
|
const sourceData = loading ? MOCK_LIST_DATA : data || [];
|
|
157
148
|
if (tabStyle === "anchor" && tabItems.length > 0) {
|
|
@@ -201,30 +192,20 @@ var List = (props) => {
|
|
|
201
192
|
if (!activeTab || activeTab === "all") {
|
|
202
193
|
return [{ tabKey: "all", tabLabel: "", items: filteredData }];
|
|
203
194
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
if (currentTab && currentTab.group) {
|
|
215
|
-
const filterField = "category";
|
|
216
|
-
filteredData = filteredData.filter((item) => matchesFieldValue(item[filterField], currentTab.group));
|
|
217
|
-
} else if (currentTab) {
|
|
218
|
-
const possibleFields = ["category", "status", "type", tabGroup];
|
|
219
|
-
for (const field of possibleFields) {
|
|
220
|
-
if (field && field !== "字段" && filteredData.some((item) => matchesFieldValue(item[field], activeTab))) {
|
|
221
|
-
filteredData = filteredData.filter((item) => matchesFieldValue(item[field], activeTab));
|
|
222
|
-
break;
|
|
223
|
-
}
|
|
195
|
+
const currentTab = tabItems.find((tab) => tab.key === activeTab);
|
|
196
|
+
if (currentTab && currentTab.group) {
|
|
197
|
+
const filterField = "category";
|
|
198
|
+
filteredData = filteredData.filter((item) => matchesFieldValue(item[filterField], currentTab.group));
|
|
199
|
+
} else if (currentTab) {
|
|
200
|
+
const possibleFields = ["category", "status", "type", tabGroup];
|
|
201
|
+
for (const field of possibleFields) {
|
|
202
|
+
if (field && field !== "字段" && filteredData.some((item) => matchesFieldValue(item[field], activeTab))) {
|
|
203
|
+
filteredData = filteredData.filter((item) => matchesFieldValue(item[field], activeTab));
|
|
204
|
+
break;
|
|
224
205
|
}
|
|
225
206
|
}
|
|
226
|
-
return [{ tabKey: activeTab, tabLabel: (currentTab == null ? void 0 : currentTab.label) || "", items: filteredData }];
|
|
227
207
|
}
|
|
208
|
+
return [{ tabKey: activeTab, tabLabel: (currentTab == null ? void 0 : currentTab.label) || "", items: filteredData }];
|
|
228
209
|
}
|
|
229
210
|
}, [data, activeTab, tabItems, tabGroup, tabStyle, loading]);
|
|
230
211
|
const totalDataLength = (0, import_react.useMemo)(() => {
|
|
@@ -521,10 +502,11 @@ var List = (props) => {
|
|
|
521
502
|
className: headerClasses
|
|
522
503
|
},
|
|
523
504
|
/* @__PURE__ */ import_react.default.createElement(
|
|
524
|
-
|
|
505
|
+
import_Tab.default,
|
|
525
506
|
{
|
|
526
|
-
|
|
527
|
-
|
|
507
|
+
className: (0, import_classnames.default)("pisell-list-tabs", `pisell-list-tabs-${tabStyle}`),
|
|
508
|
+
activeKey: activeTab,
|
|
509
|
+
items: tabItems,
|
|
528
510
|
onChange: handleTabChangeWithScroll
|
|
529
511
|
}
|
|
530
512
|
)
|
|
@@ -6,7 +6,7 @@ export interface ListState {
|
|
|
6
6
|
}
|
|
7
7
|
export declare type ListAction = {
|
|
8
8
|
type: 'SET_ACTIVE_TAB';
|
|
9
|
-
payload: string
|
|
9
|
+
payload: string;
|
|
10
10
|
} | {
|
|
11
11
|
type: 'SET_CURRENT_PAGE';
|
|
12
12
|
payload: number;
|
|
@@ -25,8 +25,6 @@ export interface UseListStateProps {
|
|
|
25
25
|
defaultPageSize: number;
|
|
26
26
|
/** 数据加载回调 */
|
|
27
27
|
onLoadData?: (params: LoadDataParams) => void;
|
|
28
|
-
/** tab样式 */
|
|
29
|
-
tabStyle: 'anchor' | 'switch' | 'none';
|
|
30
28
|
}
|
|
31
29
|
export interface UseListStateReturn {
|
|
32
30
|
state: ListState;
|
|
@@ -34,7 +32,7 @@ export interface UseListStateReturn {
|
|
|
34
32
|
setCurrentPage: (page: number) => void;
|
|
35
33
|
setStickyActive: (active: boolean) => void;
|
|
36
34
|
resetPage: () => void;
|
|
37
|
-
handleTabChange: (key: string
|
|
35
|
+
handleTabChange: (key: string) => void;
|
|
38
36
|
handlePageChange: (page: number, size?: number) => void;
|
|
39
37
|
handleShowSizeChange: (current: number, size: number) => void;
|
|
40
38
|
handleLoadMore: () => void;
|
|
@@ -42,4 +40,4 @@ export interface UseListStateReturn {
|
|
|
42
40
|
handleScrollLoad: () => void;
|
|
43
41
|
actualCurrentPage: number;
|
|
44
42
|
}
|
|
45
|
-
export declare const useListState: ({ externalCurrentPage, tabItems, defaultPageSize, onLoadData,
|
|
43
|
+
export declare const useListState: ({ externalCurrentPage, tabItems, defaultPageSize, onLoadData, }: UseListStateProps) => UseListStateReturn;
|
|
@@ -41,27 +41,14 @@ var useListState = ({
|
|
|
41
41
|
externalCurrentPage,
|
|
42
42
|
tabItems,
|
|
43
43
|
defaultPageSize,
|
|
44
|
-
onLoadData
|
|
45
|
-
tabStyle
|
|
44
|
+
onLoadData
|
|
46
45
|
}) => {
|
|
47
46
|
const initialState = {
|
|
48
47
|
activeTab: tabItems.length > 0 ? tabItems[0].key : "all",
|
|
49
48
|
currentPage: 1,
|
|
50
49
|
isStickyActive: false
|
|
51
50
|
};
|
|
52
|
-
const isSetDefaultTabRef = (0, import_react.useRef)(false);
|
|
53
51
|
const [state, dispatch] = (0, import_react.useReducer)(listStateReducer, initialState);
|
|
54
|
-
(0, import_react.useEffect)(() => {
|
|
55
|
-
var _a, _b;
|
|
56
|
-
if (tabStyle === "switch" && tabItems.length > 0 && !isSetDefaultTabRef.current) {
|
|
57
|
-
isSetDefaultTabRef.current = true;
|
|
58
|
-
const defaultTab = [tabItems[0].key];
|
|
59
|
-
if (((_b = (_a = tabItems[0]) == null ? void 0 : _a.children) == null ? void 0 : _b.length) > 0) {
|
|
60
|
-
defaultTab.push("0");
|
|
61
|
-
}
|
|
62
|
-
setActiveTab(defaultTab);
|
|
63
|
-
}
|
|
64
|
-
}, [tabItems, tabStyle]);
|
|
65
52
|
const actualCurrentPage = externalCurrentPage || state.currentPage;
|
|
66
53
|
const setActiveTab = (0, import_react.useCallback)((tab) => {
|
|
67
54
|
dispatch({ type: "SET_ACTIVE_TAB", payload: tab });
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
top: 0;
|
|
59
59
|
z-index: 10;
|
|
60
60
|
/* 毛玻璃效果 */
|
|
61
|
-
background:
|
|
61
|
+
background: rgba(255, 255, 255, 0.80);
|
|
62
62
|
backdrop-filter: blur(12px);
|
|
63
|
-
|
|
63
|
+
border-bottom: 1px solid #D0D5DD;
|
|
64
|
+
padding-bottom: 12px;
|
|
64
65
|
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
|
|
65
66
|
transition: box-shadow 0.2s ease, backdrop-filter 0.2s ease, background 0.2s ease;
|
|
66
|
-
border: none;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* List 组件工具函数导出
|
|
3
3
|
*/
|
|
4
|
-
export { useGetText, createGetText, default as createGetTextDefault, type SupportedLanguage, type LocalesObject, type GetTextFunctions
|
|
5
|
-
/**
|
|
6
|
-
* 根据层级路径数组递归查找对应节点的 productIds
|
|
7
|
-
* @param nodes 当前层级的节点列表
|
|
8
|
-
* @param levelPath 层级路径数组,每个元素是对应层级的分类 ID
|
|
9
|
-
* @param currentLevel 当前遍历的层级索引
|
|
10
|
-
* @returns 找到的节点的 productIds,找不到返回空数组
|
|
11
|
-
*
|
|
12
|
-
* @description
|
|
13
|
-
* 特殊逻辑:如果 levelPath 最后一位是 0,则取倒数第二层节点的 productIds
|
|
14
|
-
* 例如:[1, 2, 0] -> 取 id=2 节点的 productIds
|
|
15
|
-
*/
|
|
16
|
-
export declare const findProductIdsByPath: (nodes: any[], levelPath: (string | number)[], currentLevel?: number) => number[];
|
|
4
|
+
export { useGetText, createGetText, default as createGetTextDefault, type SupportedLanguage, type LocalesObject, type GetTextFunctions } from './getText';
|
|
@@ -31,40 +31,13 @@ var utils_exports = {};
|
|
|
31
31
|
__export(utils_exports, {
|
|
32
32
|
createGetText: () => import_getText.createGetText,
|
|
33
33
|
createGetTextDefault: () => import_getText.default,
|
|
34
|
-
findProductIdsByPath: () => findProductIdsByPath,
|
|
35
34
|
useGetText: () => import_getText.useGetText
|
|
36
35
|
});
|
|
37
36
|
module.exports = __toCommonJS(utils_exports);
|
|
38
37
|
var import_getText = __toESM(require("./getText"));
|
|
39
|
-
var findProductIdsByPath = (nodes, levelPath, currentLevel = 0) => {
|
|
40
|
-
const lastItem = levelPath[levelPath.length - 1];
|
|
41
|
-
const effectivePath = (lastItem === 0 || lastItem === "0") && levelPath.length > 1 ? levelPath.slice(0, -1) : levelPath;
|
|
42
|
-
if (!nodes || nodes.length === 0 || currentLevel >= effectivePath.length) {
|
|
43
|
-
return [];
|
|
44
|
-
}
|
|
45
|
-
const targetId = effectivePath[currentLevel];
|
|
46
|
-
const targetNode = nodes.find(
|
|
47
|
-
(node) => String(node.id) === String(targetId) || String(node.key) === String(targetId)
|
|
48
|
-
);
|
|
49
|
-
if (!targetNode) {
|
|
50
|
-
return [];
|
|
51
|
-
}
|
|
52
|
-
if (currentLevel === effectivePath.length - 1) {
|
|
53
|
-
return targetNode.productIds || [];
|
|
54
|
-
}
|
|
55
|
-
if (targetNode.children && targetNode.children.length > 0) {
|
|
56
|
-
return findProductIdsByPath(
|
|
57
|
-
targetNode.children,
|
|
58
|
-
effectivePath,
|
|
59
|
-
currentLevel + 1
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
return targetNode.productIds || [];
|
|
63
|
-
};
|
|
64
38
|
// Annotate the CommonJS export names for ESM import in node:
|
|
65
39
|
0 && (module.exports = {
|
|
66
40
|
createGetText,
|
|
67
41
|
createGetTextDefault,
|
|
68
|
-
findProductIdsByPath,
|
|
69
42
|
useGetText
|
|
70
43
|
});
|
|
@@ -258,7 +258,7 @@ var checkTDSAuth = async (step2, step3, callback) => {
|
|
|
258
258
|
billAddrLine1: paymentInfo.billingAddress.billAddrLine1,
|
|
259
259
|
billAddrPostCode: paymentInfo.billingAddress.billAddrPostCode,
|
|
260
260
|
billAddrState: paymentInfo.billingAddress.billAddrState,
|
|
261
|
-
threeDSCompInd: isPre ? "" : threeDSCompInd
|
|
261
|
+
threeDSCompInd: isPre ? "" : threeDSCompInd,
|
|
262
262
|
threeDSServerTransID: isPre ? "" : threeDSServerTransID,
|
|
263
263
|
threeDSRequestorAuthenticationInd: "01",
|
|
264
264
|
threeDSRequestorURL: window.location.href,
|
|
@@ -311,28 +311,26 @@ var createChallengeIframe = (challengeData, callback) => {
|
|
|
311
311
|
};
|
|
312
312
|
return new Promise((res, rej) => {
|
|
313
313
|
let timer = null;
|
|
314
|
-
const handleMessage = (event) => {
|
|
315
|
-
if (event.origin.indexOf(postmessageUrl) !== -1 || event.origin.indexOf("securesuite") !== -1) {
|
|
316
|
-
if (typeof event.data.cres == "string") {
|
|
317
|
-
if (timer) {
|
|
318
|
-
clearTimeout(timer);
|
|
319
|
-
}
|
|
320
|
-
res(event.data.cres);
|
|
321
|
-
closeIframe();
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
314
|
timer = setTimeout(() => {
|
|
326
315
|
log({
|
|
327
316
|
msg: "第五步: 60秒超时则走N逻辑",
|
|
328
317
|
data: challengeData
|
|
329
318
|
});
|
|
330
|
-
window.removeEventListener("message", handleMessage);
|
|
331
319
|
rej("time out");
|
|
332
320
|
}, 2 * 60 * 1e3);
|
|
333
321
|
window.addEventListener(
|
|
334
322
|
"message",
|
|
335
|
-
|
|
323
|
+
(event) => {
|
|
324
|
+
if (event.origin.indexOf(postmessageUrl) !== -1 || event.origin.indexOf("securesuite") !== -1) {
|
|
325
|
+
if (typeof event.data.cres == "string") {
|
|
326
|
+
if (timer) {
|
|
327
|
+
clearTimeout(timer);
|
|
328
|
+
}
|
|
329
|
+
res(event.data.cres);
|
|
330
|
+
closeIframe();
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
},
|
|
336
334
|
false
|
|
337
335
|
);
|
|
338
336
|
});
|
|
@@ -50,12 +50,6 @@ export declare type WalletPassDataType = {
|
|
|
50
50
|
shop: Shop;
|
|
51
51
|
wallet_pass_usage?: any;
|
|
52
52
|
balance_par_value: string;
|
|
53
|
-
custom_schedule_snapshot?: {
|
|
54
|
-
data: any[];
|
|
55
|
-
};
|
|
56
|
-
metadata?: {
|
|
57
|
-
validity_type: string;
|
|
58
|
-
};
|
|
59
53
|
};
|
|
60
54
|
declare type Shop = {
|
|
61
55
|
id: number;
|