@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
|
@@ -55,7 +55,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
55
55
|
}, /*#__PURE__*/React.createElement("div", {
|
|
56
56
|
className: "header-item",
|
|
57
57
|
style: {
|
|
58
|
-
width:
|
|
58
|
+
width: 110
|
|
59
59
|
}
|
|
60
60
|
}, locales.getText('pisell2.text.client-search.name')), /*#__PURE__*/React.createElement("div", {
|
|
61
61
|
className: "header-item",
|
|
@@ -65,14 +65,19 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
65
65
|
}, locales.getText('pisell2.text.client-search.register-time')), /*#__PURE__*/React.createElement("div", {
|
|
66
66
|
className: "header-item",
|
|
67
67
|
style: {
|
|
68
|
-
width:
|
|
68
|
+
width: 120
|
|
69
|
+
}
|
|
70
|
+
}, locales.getText('pisell2.text.client-search.phone')), /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
className: "header-item",
|
|
72
|
+
style: {
|
|
73
|
+
width: 135
|
|
69
74
|
}
|
|
70
|
-
}, locales.getText('pisell2.text.client-search.
|
|
75
|
+
}, locales.getText('pisell2.text.client-search.email')), /*#__PURE__*/React.createElement("div", {
|
|
71
76
|
className: "header-item",
|
|
72
77
|
style: {
|
|
73
|
-
width:
|
|
78
|
+
width: 120
|
|
74
79
|
}
|
|
75
|
-
}, locales.getText('pisell2.text.client-search.
|
|
80
|
+
}, locales.getText('pisell2.text.client-search.membership')));
|
|
76
81
|
};
|
|
77
82
|
|
|
78
83
|
// 自定义结果展示组件
|
|
@@ -114,7 +119,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
114
119
|
}, /*#__PURE__*/React.createElement(List, {
|
|
115
120
|
dataSource: searchResults,
|
|
116
121
|
renderItem: function renderItem(item, index) {
|
|
117
|
-
var _latest_wallet_detail
|
|
122
|
+
var _latest_wallet_detail;
|
|
118
123
|
var membershipText = (_latest_wallet_detail = item.latest_wallet_detail) === null || _latest_wallet_detail === void 0 || (_latest_wallet_detail = _latest_wallet_detail.wallet) === null || _latest_wallet_detail === void 0 ? void 0 : _latest_wallet_detail.name;
|
|
119
124
|
return /*#__PURE__*/React.createElement(List.Item, {
|
|
120
125
|
key: item.id,
|
|
@@ -130,11 +135,26 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
130
135
|
}, /*#__PURE__*/React.createElement("div", {
|
|
131
136
|
className: "item-cell",
|
|
132
137
|
style: {
|
|
133
|
-
width:
|
|
138
|
+
width: 110
|
|
134
139
|
}
|
|
135
140
|
}, /*#__PURE__*/React.createElement(ClientName, {
|
|
136
141
|
dataSource: item
|
|
137
|
-
})
|
|
142
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
143
|
+
className: "item-cell",
|
|
144
|
+
style: {
|
|
145
|
+
width: 110
|
|
146
|
+
}
|
|
147
|
+
}, dayjs(item.created_at).format('YYYY-MM-DD') || '-'), /*#__PURE__*/React.createElement("div", {
|
|
148
|
+
className: "item-cell",
|
|
149
|
+
style: {
|
|
150
|
+
width: 120
|
|
151
|
+
}
|
|
152
|
+
}, item.phone || '-'), /*#__PURE__*/React.createElement("div", {
|
|
153
|
+
className: "item-cell",
|
|
154
|
+
style: {
|
|
155
|
+
width: 135
|
|
156
|
+
}
|
|
157
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
138
158
|
style: {
|
|
139
159
|
overflow: 'hidden',
|
|
140
160
|
textOverflow: 'ellipsis',
|
|
@@ -143,12 +163,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
143
163
|
}, item.email || '-')), /*#__PURE__*/React.createElement("div", {
|
|
144
164
|
className: "item-cell",
|
|
145
165
|
style: {
|
|
146
|
-
width:
|
|
147
|
-
}
|
|
148
|
-
}, dayjs(item.created_at).format('YYYY-MM-DD') || '-'), /*#__PURE__*/React.createElement("div", {
|
|
149
|
-
className: "item-cell",
|
|
150
|
-
style: {
|
|
151
|
-
width: 125
|
|
166
|
+
width: 120
|
|
152
167
|
}
|
|
153
168
|
}, membershipText && translationOriginal !== null && translationOriginal !== void 0 && translationOriginal(membershipText) ? /*#__PURE__*/React.createElement(Tag, {
|
|
154
169
|
color: "gold",
|
|
@@ -162,20 +177,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
162
177
|
borderRadius: 16,
|
|
163
178
|
marginRight: 0
|
|
164
179
|
}
|
|
165
|
-
}, translationOriginal === null || translationOriginal === void 0 ? void 0 : translationOriginal(membershipText)) : '-')
|
|
166
|
-
className: "item-cell",
|
|
167
|
-
style: {
|
|
168
|
-
width: 180
|
|
169
|
-
}
|
|
170
|
-
}, /*#__PURE__*/React.createElement(ClientName, {
|
|
171
|
-
dataSource: item === null || item === void 0 || (_item$contacts_info = item.contacts_info) === null || _item$contacts_info === void 0 ? void 0 : _item$contacts_info.value
|
|
172
|
-
}), (item === null || item === void 0 || (_item$contacts_info2 = item.contacts_info) === null || _item$contacts_info2 === void 0 || (_item$contacts_info2 = _item$contacts_info2.value) === null || _item$contacts_info2 === void 0 || (_item$contacts_info2 = _item$contacts_info2.phone) === null || _item$contacts_info2 === void 0 ? void 0 : _item$contacts_info2.phone) || '-', /*#__PURE__*/React.createElement("div", {
|
|
173
|
-
style: {
|
|
174
|
-
overflow: 'hidden',
|
|
175
|
-
textOverflow: 'ellipsis',
|
|
176
|
-
whiteSpace: 'nowrap'
|
|
177
|
-
}
|
|
178
|
-
}, (item === null || item === void 0 || (_item$contacts_info3 = item.contacts_info) === null || _item$contacts_info3 === void 0 || (_item$contacts_info3 = _item$contacts_info3.value) === null || _item$contacts_info3 === void 0 ? void 0 : _item$contacts_info3.email) || '-'))));
|
|
180
|
+
}, translationOriginal === null || translationOriginal === void 0 ? void 0 : translationOriginal(membershipText)) : '-')));
|
|
179
181
|
}
|
|
180
182
|
}))));
|
|
181
183
|
};
|
|
@@ -31,7 +31,6 @@ declare const _default: {
|
|
|
31
31
|
'pisell2.text.client-search.phone': string;
|
|
32
32
|
'pisell2.text.client-search.email': string;
|
|
33
33
|
'pisell2.text.client-search.membership': string;
|
|
34
|
-
'pisell2.text.client-search.contact-info': string;
|
|
35
34
|
};
|
|
36
35
|
'zh-CN': {
|
|
37
36
|
'pisell2.text.leave-empty-for-walk-in': string;
|
|
@@ -65,7 +64,6 @@ declare const _default: {
|
|
|
65
64
|
'pisell2.text.client-search.phone': string;
|
|
66
65
|
'pisell2.text.client-search.email': string;
|
|
67
66
|
'pisell2.text.client-search.membership': string;
|
|
68
|
-
'pisell2.text.client-search.contact-info': string;
|
|
69
67
|
};
|
|
70
68
|
'zh-HK': {
|
|
71
69
|
'pisell2.text.leave-empty-for-walk-in': string;
|
|
@@ -99,7 +97,6 @@ declare const _default: {
|
|
|
99
97
|
'pisell2.text.client-search.phone': string;
|
|
100
98
|
'pisell2.text.client-search.email': string;
|
|
101
99
|
'pisell2.text.client-search.membership': string;
|
|
102
|
-
'pisell2.text.client-search.contact-info': string;
|
|
103
100
|
};
|
|
104
101
|
};
|
|
105
102
|
export default _default;
|
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
'pisell2.text.save': 'Save',
|
|
18
18
|
'pisell2.text.save-and-select': 'Save and select',
|
|
19
19
|
'pisell2.text.no-results-found': 'No results found.',
|
|
20
|
-
'pisell2.text.create-new-client': 'Create new
|
|
20
|
+
'pisell2.text.create-new-client': 'Create new client',
|
|
21
21
|
'pisell2.text.result-found': 'Result found',
|
|
22
22
|
'pisell2.text.personnel-list': 'Personnel list',
|
|
23
23
|
'pisell2.text.load-more': 'Load more',
|
|
@@ -30,8 +30,7 @@ export default {
|
|
|
30
30
|
'pisell2.text.client-search.register-time': 'Registration Time',
|
|
31
31
|
'pisell2.text.client-search.phone': 'Phone Number',
|
|
32
32
|
'pisell2.text.client-search.email': 'Email Address',
|
|
33
|
-
'pisell2.text.client-search.membership': 'Membership'
|
|
34
|
-
'pisell2.text.client-search.contact-info': 'Contact info'
|
|
33
|
+
'pisell2.text.client-search.membership': 'Membership'
|
|
35
34
|
},
|
|
36
35
|
'zh-CN': {
|
|
37
36
|
'pisell2.text.leave-empty-for-walk-in': '如未注册游客则留空',
|
|
@@ -64,8 +63,7 @@ export default {
|
|
|
64
63
|
'pisell2.text.client-search.register-time': '注册时间',
|
|
65
64
|
'pisell2.text.client-search.phone': '电话号码',
|
|
66
65
|
'pisell2.text.client-search.email': '邮箱',
|
|
67
|
-
'pisell2.text.client-search.membership': '会员'
|
|
68
|
-
'pisell2.text.client-search.contact-info': '联系信息'
|
|
66
|
+
'pisell2.text.client-search.membership': '会员'
|
|
69
67
|
},
|
|
70
68
|
'zh-HK': {
|
|
71
69
|
'pisell2.text.leave-empty-for-walk-in': '如未註冊遊客則留空',
|
|
@@ -98,7 +96,6 @@ export default {
|
|
|
98
96
|
'pisell2.text.client-search.register-time': '註冊時間',
|
|
99
97
|
'pisell2.text.client-search.phone': '電話號碼',
|
|
100
98
|
'pisell2.text.client-search.email': '電郵地址',
|
|
101
|
-
'pisell2.text.client-search.membership': '會員'
|
|
102
|
-
'pisell2.text.client-search.contact-info': '聯繫信息'
|
|
99
|
+
'pisell2.text.client-search.membership': '會員'
|
|
103
100
|
}
|
|
104
101
|
};
|
|
@@ -10,18 +10,6 @@ export interface ClientData {
|
|
|
10
10
|
nickname: string;
|
|
11
11
|
shop_id: number;
|
|
12
12
|
updated_at: string;
|
|
13
|
-
contacts_info: {
|
|
14
|
-
value: {
|
|
15
|
-
first_name?: string;
|
|
16
|
-
last_name?: string;
|
|
17
|
-
phone?: {
|
|
18
|
-
phone?: string;
|
|
19
|
-
country_calling_code?: string;
|
|
20
|
-
country_code?: string;
|
|
21
|
-
};
|
|
22
|
-
email?: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
13
|
}
|
|
26
14
|
export interface ClientSearchProps {
|
|
27
15
|
dataSource?: any;
|
|
@@ -212,7 +212,10 @@ var FooterButtons = function FooterButtons(_ref) {
|
|
|
212
212
|
className: "pisell-wallet-pass-gallery_footer-buttons-item pisell-wallet-pass-gallery_footer-buttons-item-primary"
|
|
213
213
|
}, locales.getText('wallet-pass-gallery.recharge')));
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
|
|
216
|
+
// 根据按钮数量设置不同的类名
|
|
217
|
+
var buttonCount = buttons.length;
|
|
218
|
+
var className = "pisell-wallet-pass-gallery_footer-buttons pisell-wallet-pass-gallery_footer-buttons-count-".concat(buttonCount);
|
|
216
219
|
return buttons.length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
217
220
|
className: className
|
|
218
221
|
}, buttons) : null;
|
|
@@ -220,7 +223,6 @@ var FooterButtons = function FooterButtons(_ref) {
|
|
|
220
223
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
221
224
|
className: "pisell-wallet-pass-gallery_footer"
|
|
222
225
|
}, renderButtons()), /*#__PURE__*/React.createElement(PisellModal, {
|
|
223
|
-
destroyOnClose: true,
|
|
224
226
|
platform: platform,
|
|
225
227
|
mobileModalHeight: "auto",
|
|
226
228
|
headerDivider: false,
|
|
@@ -1,38 +1,83 @@
|
|
|
1
1
|
.pisell-wallet-pass-gallery_footer {
|
|
2
2
|
position: relative;
|
|
3
|
+
left: 0;
|
|
4
|
+
right: 0;
|
|
5
|
+
bottom: 0;
|
|
3
6
|
background-color: #fff;
|
|
4
7
|
padding: 24px;
|
|
5
8
|
z-index: 100;
|
|
6
9
|
border-top: 1px solid #d0d5de;
|
|
7
|
-
margin-left: -
|
|
8
|
-
margin-right: -
|
|
10
|
+
margin-left: -20px;
|
|
11
|
+
margin-right: -20px;
|
|
9
12
|
&-buttons {
|
|
10
13
|
display: flex;
|
|
11
14
|
gap: 12px;
|
|
12
15
|
width: 100%;
|
|
13
16
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
|
|
18
|
+
.pisell-wallet-pass-gallery_footer-buttons-item-secondary{
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
display: flex;
|
|
21
|
+
>span{
|
|
22
|
+
display: block;
|
|
23
|
+
// width: 100%;
|
|
24
|
+
flex:1;
|
|
17
25
|
white-space: nowrap;
|
|
18
26
|
overflow: hidden;
|
|
19
27
|
text-overflow: ellipsis;
|
|
20
28
|
text-wrap: nowrap;
|
|
21
|
-
> span {
|
|
22
|
-
display: inline;
|
|
23
|
-
}
|
|
24
29
|
}
|
|
30
|
+
}
|
|
25
31
|
|
|
26
|
-
.pisell-wallet-pass-gallery_footer-buttons-item {
|
|
27
|
-
flex-grow: 1;
|
|
28
|
-
}
|
|
29
32
|
|
|
33
|
+
// 按钮数量样式
|
|
34
|
+
// 单个按钮占满宽度
|
|
35
|
+
&-count-1 {
|
|
36
|
+
.pisell-wallet-pass-gallery_footer-buttons-item {
|
|
37
|
+
flex: 1;
|
|
38
|
+
width: 100%;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// 两个按钮各占一半
|
|
43
|
+
&-count-2 {
|
|
44
|
+
.pisell-wallet-pass-gallery_footer-buttons-item {
|
|
45
|
+
flex: 1;
|
|
46
|
+
width: calc(50% - 6px);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// 三个按钮各占三分之一
|
|
51
|
+
&-count-3 {
|
|
52
|
+
.pisell-wallet-pass-gallery_footer-buttons-item {
|
|
53
|
+
flex: 1;
|
|
54
|
+
width: calc(33.33% - 8px);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// 四个按钮各占四分之一
|
|
59
|
+
&-count-4 {
|
|
60
|
+
.pisell-wallet-pass-gallery_footer-buttons-item {
|
|
61
|
+
flex: 1;
|
|
62
|
+
width: calc(25% - 9px);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Ant Design按钮覆盖样式
|
|
67
|
+
:global(.ant-btn) {
|
|
68
|
+
height: 48px;
|
|
69
|
+
border-radius: 6px;
|
|
70
|
+
font-size: 16px;
|
|
71
|
+
font-weight: 500;
|
|
72
|
+
width: 100%;
|
|
73
|
+
}
|
|
74
|
+
|
|
30
75
|
&-item {
|
|
31
76
|
// 修饰符:主按钮
|
|
32
77
|
&-primary {
|
|
33
|
-
background-color: var(--theme-color, #
|
|
78
|
+
background-color: var(--theme-color, #7F56D9);
|
|
34
79
|
}
|
|
35
|
-
|
|
80
|
+
|
|
36
81
|
// 修饰符:次按钮
|
|
37
82
|
&-secondary {
|
|
38
83
|
background-color: #fff;
|
|
@@ -45,4 +90,4 @@
|
|
|
45
90
|
|
|
46
91
|
.pisell-wallet-pass-gallery_footer:empty {
|
|
47
92
|
display: none;
|
|
48
|
-
}
|
|
93
|
+
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -24,20 +20,16 @@ import Recharge from "../recharge";
|
|
|
24
20
|
import FooterButtons from "../footerButton";
|
|
25
21
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
26
22
|
import "./index.less";
|
|
27
|
-
import { formatScheduleText } from "../../../../components/wallet/utils";
|
|
28
|
-
import localeTexts from "../../locales";
|
|
29
|
-
import { request } from "../../../../utils";
|
|
30
23
|
var Text = Typography.Text;
|
|
31
24
|
var PassDetail = function PassDetail(props) {
|
|
32
|
-
var _context$appHelper,
|
|
25
|
+
var _context$appHelper, _store$getState, _dataSource$machineco, _getDetail$data, _getDetail$data2, _dataSource$machineco2;
|
|
26
|
+
if (!props.dataSource) return null;
|
|
33
27
|
var _usePisellConfig = usePisellConfig(),
|
|
34
28
|
_usePisellConfig$symb = _usePisellConfig.symbol,
|
|
35
29
|
symbol = _usePisellConfig$symb === void 0 ? '$' : _usePisellConfig$symb;
|
|
36
30
|
var dataSource = props.dataSource,
|
|
37
31
|
_props$platform = props.platform,
|
|
38
|
-
platform = _props$platform === void 0 ? 'pc' : _props$platform
|
|
39
|
-
_props$showTimeLine = props.showTimeLine,
|
|
40
|
-
showTimeLine = _props$showTimeLine === void 0 ? true : _props$showTimeLine;
|
|
32
|
+
platform = _props$platform === void 0 ? 'pc' : _props$platform;
|
|
41
33
|
var _useState = useState('detail'),
|
|
42
34
|
_useState2 = _slicedToArray(_useState, 2),
|
|
43
35
|
activeKey = _useState2[0],
|
|
@@ -55,54 +47,38 @@ var PassDetail = function PassDetail(props) {
|
|
|
55
47
|
store: {}
|
|
56
48
|
},
|
|
57
49
|
store = _ref.store;
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
_ref3$
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
_ref3$
|
|
81
|
-
|
|
82
|
-
_ref3$product = _ref3.product,
|
|
83
|
-
product = _ref3$product === void 0 ? {} : _ref3$product,
|
|
84
|
-
custom_schedule_snapshot = _ref3.custom_schedule_snapshot,
|
|
85
|
-
customer_id = _ref3.customer_id;
|
|
86
|
-
var _ref4 = product || {},
|
|
87
|
-
_ref4$description = _ref4.description,
|
|
88
|
-
description = _ref4$description === void 0 ? '' : _ref4$description,
|
|
89
|
-
_ref4$extension_data = _ref4.extension_data,
|
|
90
|
-
extension_data = _ref4$extension_data === void 0 ? [] : _ref4$extension_data,
|
|
91
|
-
_ref4$customer_order_ = _ref4.customer_order_behavior_count,
|
|
92
|
-
customer_order_behavior_count = _ref4$customer_order_ === void 0 ? 0 : _ref4$customer_order_;
|
|
50
|
+
var timezone = (store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 || (_store$getState = _store$getState.symbol) === null || _store$getState === void 0 ? void 0 : _store$getState.shop.timezone) || 'Asia/Shanghai';
|
|
51
|
+
var _ref2 = dataSource || {},
|
|
52
|
+
_ref2$id = _ref2.id,
|
|
53
|
+
id = _ref2$id === void 0 ? '' : _ref2$id,
|
|
54
|
+
_ref2$code = _ref2.code,
|
|
55
|
+
code = _ref2$code === void 0 ? '' : _ref2$code,
|
|
56
|
+
_ref2$tag = _ref2.tag,
|
|
57
|
+
tag = _ref2$tag === void 0 ? '' : _ref2$tag,
|
|
58
|
+
_ref2$product_title = _ref2.product_title,
|
|
59
|
+
product_title = _ref2$product_title === void 0 ? '' : _ref2$product_title,
|
|
60
|
+
_ref2$encoded = _ref2.encoded,
|
|
61
|
+
encoded = _ref2$encoded === void 0 ? '' : _ref2$encoded,
|
|
62
|
+
balance = _ref2.balance,
|
|
63
|
+
_ref2$expire_date = _ref2.expire_date,
|
|
64
|
+
expire_date = _ref2$expire_date === void 0 ? '' : _ref2$expire_date,
|
|
65
|
+
_ref2$product = _ref2.product,
|
|
66
|
+
product = _ref2$product === void 0 ? {} : _ref2$product;
|
|
67
|
+
var _ref3 = product || {},
|
|
68
|
+
_ref3$description = _ref3.description,
|
|
69
|
+
description = _ref3$description === void 0 ? '' : _ref3$description,
|
|
70
|
+
_ref3$extension_data = _ref3.extension_data,
|
|
71
|
+
extension_data = _ref3$extension_data === void 0 ? [] : _ref3$extension_data,
|
|
72
|
+
_ref3$customer_order_ = _ref3.customer_order_behavior_count,
|
|
73
|
+
customer_order_behavior_count = _ref3$customer_order_ === void 0 ? 0 : _ref3$customer_order_;
|
|
93
74
|
var _getDetail = useRequest(function () {
|
|
94
75
|
return getDetailApi({
|
|
95
|
-
id: id
|
|
96
|
-
apiPrefix: apiPrefix,
|
|
97
|
-
order_behavior_count_customer_id: customer_id
|
|
76
|
+
id: id
|
|
98
77
|
});
|
|
99
78
|
}, {
|
|
100
79
|
ready: !!id,
|
|
101
|
-
refreshDeps: [id
|
|
80
|
+
refreshDeps: [id]
|
|
102
81
|
});
|
|
103
|
-
var scheduleList = useMemo(function () {
|
|
104
|
-
return (custom_schedule_snapshot === null || custom_schedule_snapshot === void 0 ? void 0 : custom_schedule_snapshot.data) || [];
|
|
105
|
-
}, [custom_schedule_snapshot]);
|
|
106
82
|
useEffect(function () {
|
|
107
83
|
if (tag === 'product_discount_card') {
|
|
108
84
|
setActiveKey('detail');
|
|
@@ -137,33 +113,6 @@ var PassDetail = function PassDetail(props) {
|
|
|
137
113
|
};
|
|
138
114
|
}, []);
|
|
139
115
|
var descs = useMemo(function () {
|
|
140
|
-
var _context$engine2;
|
|
141
|
-
var detail = formatScheduleText(scheduleList, context === null || context === void 0 || (_context$engine2 = context.engine) === null || _context$engine2 === void 0 || (_context$engine2 = _context$engine2.props) === null || _context$engine2 === void 0 ? void 0 : _context$engine2.locale);
|
|
142
|
-
var expireText = expire_date ? expire_date : locales.getText('wallet-pass-gallery.expireDate');
|
|
143
|
-
if (scheduleList.length > 0) {
|
|
144
|
-
// 换行展示
|
|
145
|
-
var validityTexts = "";
|
|
146
|
-
var excludedText = "";
|
|
147
|
-
var includedText = "";
|
|
148
|
-
detail.forEach(function (item) {
|
|
149
|
-
if (item.validityTexts.length > 0) {
|
|
150
|
-
validityTexts = "".concat(validityTexts).concat(item.validityTexts.join('\n'), "\n");
|
|
151
|
-
}
|
|
152
|
-
if (item.excluded_date.length > 0) {
|
|
153
|
-
excludedText = "".concat(excludedText).concat(item.excluded_date.join('\n'), "\n");
|
|
154
|
-
}
|
|
155
|
-
if (item.included_date.length > 0) {
|
|
156
|
-
includedText = "".concat(includedText).concat(item.included_date.join('\n'), "\n");
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
expireText = /*#__PURE__*/React.createElement("span", {
|
|
160
|
-
className: "wallet-detail-expire-text"
|
|
161
|
-
}, validityTexts, excludedText && /*#__PURE__*/React.createElement("div", {
|
|
162
|
-
className: "wallet-detail-expire-text-title"
|
|
163
|
-
}, locales.getText('page.wallet.notValidDate')), excludedText, includedText && /*#__PURE__*/React.createElement("div", {
|
|
164
|
-
className: "wallet-detail-expire-text-title"
|
|
165
|
-
}, locales.getText('page.wallet.includedDate')), includedText);
|
|
166
|
-
}
|
|
167
116
|
var data = [{
|
|
168
117
|
label: locales.getText('wallet-pass-gallery.cardName'),
|
|
169
118
|
value: product_title
|
|
@@ -173,7 +122,7 @@ var PassDetail = function PassDetail(props) {
|
|
|
173
122
|
isLink: false
|
|
174
123
|
}, {
|
|
175
124
|
label: locales.getText('wallet-pass-gallery.validDate'),
|
|
176
|
-
value:
|
|
125
|
+
value: expire_date ? expire_date : locales.getText('wallet-pass-gallery.expireDate')
|
|
177
126
|
}];
|
|
178
127
|
//折扣卡显示折扣字段 其他显示余额字段
|
|
179
128
|
if (tag === 'product_discount_card') {
|
|
@@ -242,16 +191,14 @@ var PassDetail = function PassDetail(props) {
|
|
|
242
191
|
};
|
|
243
192
|
var renderTimeLine = function renderTimeLine() {
|
|
244
193
|
if (tag === 'product_discount_card') return null;
|
|
245
|
-
if (!showTimeLine) return null;
|
|
246
194
|
return /*#__PURE__*/React.createElement(TimelineSection, {
|
|
247
195
|
code: code,
|
|
248
196
|
tag: tag,
|
|
249
197
|
timezone: timezone
|
|
250
198
|
});
|
|
251
199
|
};
|
|
252
|
-
if (!props.dataSource) return null;
|
|
253
200
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
254
|
-
className: classNames("pisell-wallet-pass-gallery_detail", "pisell-wallet-pass-gallery_detail-".concat(platform)
|
|
201
|
+
className: classNames("pisell-wallet-pass-gallery_detail", "pisell-wallet-pass-gallery_detail-".concat(platform))
|
|
255
202
|
}, /*#__PURE__*/React.createElement("div", {
|
|
256
203
|
className: "pisell-wallet-pass-gallery_detail-content",
|
|
257
204
|
ref: containerRef
|
|
@@ -32,10 +32,6 @@ var Recharge = function Recharge(_ref) {
|
|
|
32
32
|
storage = _ref2.storage;
|
|
33
33
|
var dvaStore = (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 || (_context$appHelper2$g = _context$appHelper2.getStore) === null || _context$appHelper2$g === void 0 || (_context$appHelper2$g = _context$appHelper2$g.call(_context$appHelper2)) === null || _context$appHelper2$g === void 0 ? void 0 : _context$appHelper2$g.getState();
|
|
34
34
|
var shop = (dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 || (_dvaStore$core = _dvaStore$core.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.shop) || {};
|
|
35
|
-
var _useState3 = useState(false),
|
|
36
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
37
|
-
loading = _useState4[0],
|
|
38
|
-
setLoading = _useState4[1];
|
|
39
35
|
useEffect(function () {
|
|
40
36
|
if (detailData) {
|
|
41
37
|
setChargeItem(((detailData === null || detailData === void 0 ? void 0 : detailData.gift_option) || [])[0]);
|
|
@@ -48,7 +44,6 @@ var Recharge = function Recharge(_ref) {
|
|
|
48
44
|
while (1) switch (_context.prev = _context.next) {
|
|
49
45
|
case 0:
|
|
50
46
|
_context.prev = 0;
|
|
51
|
-
setLoading(true);
|
|
52
47
|
params = {
|
|
53
48
|
voucher_id: (detailData === null || detailData === void 0 ? void 0 : detailData.id) || '',
|
|
54
49
|
product_id: (detailData === null || detailData === void 0 ? void 0 : detailData.product_id) || '',
|
|
@@ -62,9 +57,9 @@ var Recharge = function Recharge(_ref) {
|
|
|
62
57
|
currency_format: (shop === null || shop === void 0 ? void 0 : shop.currency_format) || ''
|
|
63
58
|
}
|
|
64
59
|
};
|
|
65
|
-
_context.next =
|
|
60
|
+
_context.next = 4;
|
|
66
61
|
return orderRechargeProduct(params);
|
|
67
|
-
case
|
|
62
|
+
case 4:
|
|
68
63
|
data = _context.sent;
|
|
69
64
|
if (data !== null && data !== void 0 && data.order_id) {
|
|
70
65
|
storage === null || storage === void 0 || (_storage$set = storage.set) === null || _storage$set === void 0 || _storage$set.call(storage, 'orderId', data.order_id);
|
|
@@ -74,28 +69,23 @@ var Recharge = function Recharge(_ref) {
|
|
|
74
69
|
callback: function callback() {}
|
|
75
70
|
});
|
|
76
71
|
}
|
|
77
|
-
_context.next =
|
|
72
|
+
_context.next = 11;
|
|
78
73
|
break;
|
|
79
|
-
case
|
|
80
|
-
_context.prev =
|
|
74
|
+
case 8:
|
|
75
|
+
_context.prev = 8;
|
|
81
76
|
_context.t0 = _context["catch"](0);
|
|
82
77
|
console.error(locales.getText('wallet-pass-gallery.log.rechargeOrderFailed'), _context.t0);
|
|
83
|
-
case
|
|
84
|
-
_context.prev = 12;
|
|
85
|
-
setLoading(false);
|
|
86
|
-
return _context.finish(12);
|
|
87
|
-
case 15:
|
|
78
|
+
case 11:
|
|
88
79
|
case "end":
|
|
89
80
|
return _context.stop();
|
|
90
81
|
}
|
|
91
|
-
}, _callee, null, [[0,
|
|
82
|
+
}, _callee, null, [[0, 8]]);
|
|
92
83
|
}));
|
|
93
84
|
return function handleRecharge() {
|
|
94
85
|
return _ref3.apply(this, arguments);
|
|
95
86
|
};
|
|
96
87
|
}();
|
|
97
88
|
return /*#__PURE__*/React.createElement(Drawer, {
|
|
98
|
-
destroyOnClose: true,
|
|
99
89
|
title: locales.getText('wallet-pass-gallery.rechargeOptions'),
|
|
100
90
|
open: open,
|
|
101
91
|
zIndex: 999,
|
|
@@ -107,8 +97,7 @@ var Recharge = function Recharge(_ref) {
|
|
|
107
97
|
block: true,
|
|
108
98
|
size: "large",
|
|
109
99
|
onClick: handleRecharge,
|
|
110
|
-
disabled: !(chargeItem !== null && chargeItem !== void 0 && chargeItem.id)
|
|
111
|
-
loading: loading
|
|
100
|
+
disabled: !(chargeItem !== null && chargeItem !== void 0 && chargeItem.id)
|
|
112
101
|
}, locales.getText('wallet-pass-gallery.recharge'))
|
|
113
102
|
}, /*#__PURE__*/React.createElement("div", {
|
|
114
103
|
className: "pisell-wallet-pass-gallery_recharge"
|
|
@@ -82,8 +82,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
82
82
|
num: 20,
|
|
83
83
|
skip: (d === null || d === void 0 ? void 0 : d.nextId) || 1,
|
|
84
84
|
tags: TAGS,
|
|
85
|
-
filter_wallet_id: walletId || undefined
|
|
86
|
-
"with": ['customScheduleSnapshot']
|
|
85
|
+
filter_wallet_id: walletId || undefined
|
|
87
86
|
});
|
|
88
87
|
case 3:
|
|
89
88
|
res = _context.sent;
|
|
@@ -122,8 +121,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
122
121
|
num: 20,
|
|
123
122
|
skip: (d === null || d === void 0 ? void 0 : d.nextId) || 1,
|
|
124
123
|
tags: TAGS,
|
|
125
|
-
filter_wallet_id: walletId || undefined
|
|
126
|
-
"with": ['customScheduleSnapshot']
|
|
124
|
+
filter_wallet_id: walletId || undefined
|
|
127
125
|
});
|
|
128
126
|
case 3:
|
|
129
127
|
res = _context2.sent;
|
|
@@ -554,9 +552,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
554
552
|
},
|
|
555
553
|
block: true
|
|
556
554
|
}, locales.getText('wallet-pass-gallery.button.add'))), /*#__PURE__*/React.createElement(PisellModal, {
|
|
557
|
-
|
|
558
|
-
destroyOnClose: true,
|
|
559
|
-
platform: platform,
|
|
555
|
+
platform: 'h5',
|
|
560
556
|
visible: !!_currentItem,
|
|
561
557
|
onCancel: function onCancel() {
|
|
562
558
|
return setCurrentItemId('');
|
|
@@ -17,7 +17,6 @@ export interface IWalletListParmsProps {
|
|
|
17
17
|
skip?: number;
|
|
18
18
|
filter_wallet_id?: string;
|
|
19
19
|
available: 0 | 1;
|
|
20
|
-
with?: string[];
|
|
21
20
|
}
|
|
22
21
|
/**
|
|
23
22
|
* 钱包列表项属性接口
|
|
@@ -172,8 +171,6 @@ export declare const getAssetList: (params: IAssetListProps) => Promise<{
|
|
|
172
171
|
*/
|
|
173
172
|
export declare const getDetailApi: (params: {
|
|
174
173
|
id: string;
|
|
175
|
-
order_behavior_count_customer_id: string;
|
|
176
|
-
apiPrefix: string;
|
|
177
174
|
}) => Promise<IDetailResponse>;
|
|
178
175
|
/**
|
|
179
176
|
* 详情响应数据结构,供组件消费
|
|
@@ -214,12 +214,10 @@ export var getDetailApi = /*#__PURE__*/function () {
|
|
|
214
214
|
while (1) switch (_context6.prev = _context6.next) {
|
|
215
215
|
case 0:
|
|
216
216
|
_context6.next = 2;
|
|
217
|
-
return request.getRequest().get("
|
|
217
|
+
return request.getRequest().get("/h5/machinecode/lowcode/detail/".concat(params.id), {
|
|
218
218
|
order_behavior_count: 1,
|
|
219
219
|
// 订单行为次数
|
|
220
|
-
order_behavior_count_customer: 1
|
|
221
|
-
// 客户订单行为次数
|
|
222
|
-
order_behavior_count_customer_id: params.apiPrefix === '/shop' ? params.order_behavior_count_customer_id : undefined
|
|
220
|
+
order_behavior_count_customer: 1 // 客户订单行为次数
|
|
223
221
|
});
|
|
224
222
|
case 2:
|
|
225
223
|
_yield$request$getReq6 = _context6.sent;
|