@pisell/private-materials 6.7.7 → 6.7.9
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/addons/model.d.ts +10 -1
- 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/model.d.ts +10 -1
- 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/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -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/addService/utils.d.ts +1 -1
- 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/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- 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/hooks/useWalletPass.js +1 -1
- 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/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/index.js +0 -12
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- 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/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/model.d.ts +9 -1
- package/es/components/pay/toC/status.d.ts +0 -1
- package/es/components/pay/toC/status.js +0 -3
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/utils.d.ts +1 -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/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/index.js +10 -11
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/components/WalletCard.js +1 -5
- package/es/components/wallet/index.js +2 -4
- package/es/components/wallet/model.d.ts +9 -1
- 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/addons/model.d.ts +10 -1
- 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/model.d.ts +10 -1
- 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/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -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/addService/utils.d.ts +1 -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/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- 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/hooks/useWalletPass.js +1 -1
- 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/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/index.js +0 -12
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- 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/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/model.d.ts +9 -1
- package/lib/components/pay/toC/status.d.ts +0 -1
- package/lib/components/pay/toC/status.js +0 -5
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/utils.d.ts +1 -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/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/index.js +8 -8
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/components/WalletCard.js +0 -4
- package/lib/components/wallet/index.js +2 -2
- package/lib/components/wallet/model.d.ts +9 -1
- 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
|
@@ -18,14 +18,7 @@ import { useBookingTicket } from "./bookingTicket";
|
|
|
18
18
|
import { useState, useEffect, useRef } from 'react';
|
|
19
19
|
import useEngineContext, { usePlatform } from "../../../../hooks/useEngineContext";
|
|
20
20
|
import dayjs from 'dayjs';
|
|
21
|
-
// 等待函数
|
|
22
|
-
var sleep = function sleep(ms) {
|
|
23
|
-
return new Promise(function (resolve) {
|
|
24
|
-
return setTimeout(resolve, ms);
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
21
|
export var useProducts = function useProducts(notAvailableRef) {
|
|
28
|
-
var _context$appHelper;
|
|
29
22
|
var bookingTicket = useBookingTicket();
|
|
30
23
|
var context = useEngineContext();
|
|
31
24
|
var platform = usePlatform();
|
|
@@ -38,10 +31,6 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
38
31
|
loading = _useState4[0],
|
|
39
32
|
setLoading = _useState4[1];
|
|
40
33
|
var isFirstLoadRef = useRef(true);
|
|
41
|
-
var isFirstLoadDataRef = useRef(true);
|
|
42
|
-
var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
|
43
|
-
getApp = _ref.getApp;
|
|
44
|
-
var app = getApp();
|
|
45
34
|
|
|
46
35
|
// 日程时间段列表 HH:mm格式
|
|
47
36
|
var _useState5 = useState([]),
|
|
@@ -51,7 +40,7 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
51
40
|
var scheduledTaskQueueIdRef = useRef('booking-schedule-products');
|
|
52
41
|
var paramsRef = useRef(undefined);
|
|
53
42
|
var getProducts = useMemoizedFn( /*#__PURE__*/function () {
|
|
54
|
-
var
|
|
43
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
55
44
|
var _products, _notAvailableRef$curr;
|
|
56
45
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
57
46
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -84,7 +73,7 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
84
73
|
}, _callee, null, [[1, 11]]);
|
|
85
74
|
}));
|
|
86
75
|
return function (_x) {
|
|
87
|
-
return
|
|
76
|
+
return _ref.apply(this, arguments);
|
|
88
77
|
};
|
|
89
78
|
}());
|
|
90
79
|
|
|
@@ -94,21 +83,21 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
94
83
|
return;
|
|
95
84
|
}
|
|
96
85
|
try {
|
|
97
|
-
var _context$
|
|
98
|
-
var
|
|
99
|
-
if (!
|
|
86
|
+
var _context$appHelper, _context$appHelper$ge;
|
|
87
|
+
var app = context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getApp) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper);
|
|
88
|
+
if (!app || !app.tasksManager) {
|
|
100
89
|
console.warn('App 或 tasksManager 不可用');
|
|
101
90
|
return;
|
|
102
91
|
}
|
|
103
92
|
|
|
104
93
|
// 注册 getProducts 任务函数
|
|
105
|
-
|
|
106
|
-
var
|
|
94
|
+
app.tasksManager.addTaskFunction('getProducts', /*#__PURE__*/function () {
|
|
95
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
|
|
107
96
|
var task;
|
|
108
97
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
109
98
|
while (1) switch (_context2.prev = _context2.next) {
|
|
110
99
|
case 0:
|
|
111
|
-
task =
|
|
100
|
+
task = _ref2.task;
|
|
112
101
|
console.log('定时执行 getProducts,参数:', task.payload);
|
|
113
102
|
_context2.next = 4;
|
|
114
103
|
return getProducts(task.payload);
|
|
@@ -123,14 +112,14 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
123
112
|
}, _callee2);
|
|
124
113
|
}));
|
|
125
114
|
return function (_x2) {
|
|
126
|
-
return
|
|
115
|
+
return _ref3.apply(this, arguments);
|
|
127
116
|
};
|
|
128
117
|
}());
|
|
129
118
|
|
|
130
119
|
// 如果有 scheduleTimePoints,创建定时任务
|
|
131
120
|
if (scheduleTimePoints && scheduleTimePoints.length > 0) {
|
|
132
121
|
// 先清除之前的定时任务
|
|
133
|
-
|
|
122
|
+
app.tasksManager.clearTasks({
|
|
134
123
|
module: 'scheduledTasks',
|
|
135
124
|
queueId: scheduledTaskQueueIdRef.current
|
|
136
125
|
});
|
|
@@ -158,14 +147,14 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
158
147
|
});
|
|
159
148
|
|
|
160
149
|
// 添加定时任务到 scheduledTasks 模块
|
|
161
|
-
|
|
150
|
+
app.tasksManager.addTask({
|
|
162
151
|
module: 'scheduledTasks',
|
|
163
152
|
queueId: scheduledTaskQueueIdRef.current,
|
|
164
153
|
tasks: tasks
|
|
165
154
|
});
|
|
166
155
|
|
|
167
156
|
// 开始执行定时任务队列
|
|
168
|
-
|
|
157
|
+
app.tasksManager.run({
|
|
169
158
|
module: 'scheduledTasks',
|
|
170
159
|
queueId: scheduledTaskQueueIdRef.current
|
|
171
160
|
});
|
|
@@ -178,10 +167,10 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
178
167
|
// 清理函数:组件卸载时清除定时任务
|
|
179
168
|
return function () {
|
|
180
169
|
try {
|
|
181
|
-
var _context$
|
|
182
|
-
var
|
|
183
|
-
if (
|
|
184
|
-
|
|
170
|
+
var _context$appHelper2, _context$appHelper2$g;
|
|
171
|
+
var _app = context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 || (_context$appHelper2$g = _context$appHelper2.getApp) === null || _context$appHelper2$g === void 0 ? void 0 : _context$appHelper2$g.call(_context$appHelper2);
|
|
172
|
+
if (_app && _app.tasksManager) {
|
|
173
|
+
_app.tasksManager.clearTasks({
|
|
185
174
|
module: 'scheduledTasks',
|
|
186
175
|
queueId: scheduledTaskQueueIdRef.current
|
|
187
176
|
});
|
|
@@ -192,7 +181,7 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
192
181
|
};
|
|
193
182
|
}, [scheduleTimePoints]);
|
|
194
183
|
var getScheduleTimePoints = useMemoizedFn( /*#__PURE__*/function () {
|
|
195
|
-
var
|
|
184
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
|
|
196
185
|
var scheduleTimePoints;
|
|
197
186
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
198
187
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -215,7 +204,7 @@ export var useProducts = function useProducts(notAvailableRef) {
|
|
|
215
204
|
}, _callee3);
|
|
216
205
|
}));
|
|
217
206
|
return function (_x3) {
|
|
218
|
-
return
|
|
207
|
+
return _ref4.apply(this, arguments);
|
|
219
208
|
};
|
|
220
209
|
}());
|
|
221
210
|
return {
|
|
@@ -61,8 +61,6 @@ declare const _default: {
|
|
|
61
61
|
'pisell2.ticket-booking.terminal-upgrade-description': string;
|
|
62
62
|
'pisell2.ticket-booking.terminal-upgrade-ok': string;
|
|
63
63
|
'pisell2.ticket-booking.terminal-upgrade-cancel': string;
|
|
64
|
-
'pisell2.ticket-booking.collapse': string;
|
|
65
|
-
'pisell2.ticket-booking.expand': string;
|
|
66
64
|
};
|
|
67
65
|
'zh-CN': {
|
|
68
66
|
'pisell2.ticket-booking.info': string;
|
|
@@ -126,8 +124,6 @@ declare const _default: {
|
|
|
126
124
|
'pisell2.ticket-booking.terminal-upgrade-description': string;
|
|
127
125
|
'pisell2.ticket-booking.terminal-upgrade-ok': string;
|
|
128
126
|
'pisell2.ticket-booking.terminal-upgrade-cancel': string;
|
|
129
|
-
'pisell2.ticket-booking.collapse': string;
|
|
130
|
-
'pisell2.ticket-booking.expand': string;
|
|
131
127
|
};
|
|
132
128
|
'zh-HK': {
|
|
133
129
|
'pisell2.ticket-booking.info': string;
|
|
@@ -191,8 +187,6 @@ declare const _default: {
|
|
|
191
187
|
'pisell2.ticket-booking.terminal-upgrade-description': string;
|
|
192
188
|
'pisell2.ticket-booking.terminal-upgrade-ok': string;
|
|
193
189
|
'pisell2.ticket-booking.terminal-upgrade-cancel': string;
|
|
194
|
-
'pisell2.ticket-booking.collapse': string;
|
|
195
|
-
'pisell2.ticket-booking.expand': string;
|
|
196
190
|
};
|
|
197
191
|
};
|
|
198
192
|
export default _default;
|
|
@@ -73,9 +73,7 @@ export default {
|
|
|
73
73
|
'pisell2.ticket-booking.terminal-upgrade-title': 'Terminal Version Reminder',
|
|
74
74
|
'pisell2.ticket-booking.terminal-upgrade-description': 'Your Terminal version is outdated. Please upgrade Terminal to use all features.',
|
|
75
75
|
'pisell2.ticket-booking.terminal-upgrade-ok': 'I understand',
|
|
76
|
-
'pisell2.ticket-booking.terminal-upgrade-cancel': 'Cancel'
|
|
77
|
-
'pisell2.ticket-booking.collapse': 'Collapse',
|
|
78
|
-
'pisell2.ticket-booking.expand': 'Expand'
|
|
76
|
+
'pisell2.ticket-booking.terminal-upgrade-cancel': 'Cancel'
|
|
79
77
|
},
|
|
80
78
|
'zh-CN': {
|
|
81
79
|
'pisell2.ticket-booking.info': '信息',
|
|
@@ -151,9 +149,7 @@ export default {
|
|
|
151
149
|
'pisell2.ticket-booking.terminal-upgrade-title': 'Terminal版本提醒',
|
|
152
150
|
'pisell2.ticket-booking.terminal-upgrade-description': '检测到您的Terminal版本较低,请升级Terminal以使用完整功能',
|
|
153
151
|
'pisell2.ticket-booking.terminal-upgrade-ok': '我知道了',
|
|
154
|
-
'pisell2.ticket-booking.terminal-upgrade-cancel': '取消'
|
|
155
|
-
'pisell2.ticket-booking.collapse': '收起',
|
|
156
|
-
'pisell2.ticket-booking.expand': '展开'
|
|
152
|
+
'pisell2.ticket-booking.terminal-upgrade-cancel': '取消'
|
|
157
153
|
},
|
|
158
154
|
'zh-HK': {
|
|
159
155
|
'pisell2.ticket-booking.info': '資訊',
|
|
@@ -229,8 +225,6 @@ export default {
|
|
|
229
225
|
'pisell2.ticket-booking.terminal-upgrade-title': 'Terminal版本提醒',
|
|
230
226
|
'pisell2.ticket-booking.terminal-upgrade-description': '檢測到您的Terminal版本較低,請升級Terminal以使用完整功能',
|
|
231
227
|
'pisell2.ticket-booking.terminal-upgrade-ok': '我知道了',
|
|
232
|
-
'pisell2.ticket-booking.terminal-upgrade-cancel': '取消'
|
|
233
|
-
'pisell2.ticket-booking.collapse': '收起',
|
|
234
|
-
'pisell2.ticket-booking.expand': '展開'
|
|
228
|
+
'pisell2.ticket-booking.terminal-upgrade-cancel': '取消'
|
|
235
229
|
}
|
|
236
230
|
};
|
|
@@ -2,14 +2,10 @@ var _excluded = ["detail"];
|
|
|
2
2
|
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); }
|
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
4
|
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."); }
|
|
5
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
5
|
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); }
|
|
10
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
11
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
6
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
15
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -166,30 +162,21 @@ export var addService = function addService(list, addItem, state) {
|
|
|
166
162
|
// 是否设置过 只追加到第一个中
|
|
167
163
|
var isSetCount = false;
|
|
168
164
|
value = list.map(function (item) {
|
|
169
|
-
var _item$_extend;
|
|
170
165
|
// 是否商品券折扣的商品
|
|
171
166
|
var isGoodPassDiscountProduct = (item.discount_list || []).some(function (item) {
|
|
172
167
|
return item.type === 'good_pass';
|
|
173
168
|
});
|
|
174
169
|
var isEdit = item === null || item === void 0 ? void 0 : item.edit;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 || (_item$_extend = _item$_extend.other) === null || _item$_extend === void 0 ? void 0 : _item$_extend.bundle) || []).forEach(function (item) {
|
|
178
|
-
bundleDiscountList.push.apply(bundleDiscountList, _toConsumableArray((item === null || item === void 0 ? void 0 : item.discount_list) || []));
|
|
179
|
-
});
|
|
180
|
-
var isGoodPassBundleProduct = bundleDiscountList.some(function (item) {
|
|
181
|
-
return item.type === 'good_pass';
|
|
182
|
-
});
|
|
183
|
-
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit && !isGoodPassBundleProduct) {
|
|
184
|
-
var _item$_extend2, _addItem$_extend2, _item$_extend3;
|
|
170
|
+
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit) {
|
|
171
|
+
var _item$_extend, _addItem$_extend2, _item$_extend2;
|
|
185
172
|
isNotSame = false;
|
|
186
|
-
var _quantity = ((item === null || item === void 0 || (_item$
|
|
173
|
+
var _quantity = ((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.quantity) || 1) + ((addItem === null || addItem === void 0 || (_addItem$_extend2 = addItem._extend) === null || _addItem$_extend2 === void 0 ? void 0 : _addItem$_extend2.quantity) || 1);
|
|
187
174
|
count = _quantity;
|
|
188
175
|
isSetCount = true;
|
|
189
176
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
190
177
|
_extend: _objectSpread(_objectSpread({}, item._extend), {}, {
|
|
191
178
|
quantity: _quantity,
|
|
192
|
-
other: _objectSpread(_objectSpread({}, ((_item$
|
|
179
|
+
other: _objectSpread(_objectSpread({}, ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.other) || {}), {}, {
|
|
193
180
|
quantity: _quantity
|
|
194
181
|
})
|
|
195
182
|
})
|
|
@@ -266,11 +253,11 @@ export var getIsShowNumber = function getIsShowNumber(item, state) {
|
|
|
266
253
|
|
|
267
254
|
// 生成服务key
|
|
268
255
|
export var genServiceKey = function genServiceKey(item) {
|
|
269
|
-
var _item$
|
|
256
|
+
var _item$_extend3, _item$_extend4, _item$_extend5;
|
|
270
257
|
var product_id = item.product_id;
|
|
271
|
-
var durationKey = (_item$
|
|
272
|
-
var start_time = (_item$
|
|
273
|
-
var total = (_item$
|
|
258
|
+
var durationKey = (_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.duration;
|
|
259
|
+
var start_time = (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.start_time;
|
|
260
|
+
var total = (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.total;
|
|
274
261
|
var resourceKey = '';
|
|
275
262
|
Object.values(item._extend.resource || []).forEach(function (resources) {
|
|
276
263
|
resources.forEach(function (resource) {
|
|
@@ -375,21 +362,17 @@ export var getShopDiscountKey = function getShopDiscountKey(osKey) {
|
|
|
375
362
|
export var rulesHooks = {
|
|
376
363
|
// 获取商品关键信息
|
|
377
364
|
getProduct: function getProduct(product) {
|
|
378
|
-
var _product$_extend, _product$_extend2, _product$_extend3;
|
|
379
365
|
var detail = {
|
|
380
366
|
booking_id: product.booking_id,
|
|
381
367
|
id: product.id,
|
|
382
368
|
_id: product._id,
|
|
383
|
-
price: product.
|
|
369
|
+
price: product.price,
|
|
384
370
|
total: product._extend.total,
|
|
385
371
|
discount_list: product.discount_list,
|
|
386
372
|
origin_total: product._extend.origin_total,
|
|
387
373
|
num: product._extend.quantity,
|
|
388
374
|
quantity: product._extend.quantity || 1,
|
|
389
|
-
vouchersApplicable: product.vouchersApplicable
|
|
390
|
-
startDate: (_product$_extend = product._extend) === null || _product$_extend === void 0 ? void 0 : _product$_extend.startDate,
|
|
391
|
-
bundle: ((_product$_extend2 = product._extend) === null || _product$_extend2 === void 0 || (_product$_extend2 = _product$_extend2.other) === null || _product$_extend2 === void 0 ? void 0 : _product$_extend2.bundle) || [],
|
|
392
|
-
options: ((_product$_extend3 = product._extend) === null || _product$_extend3 === void 0 || (_product$_extend3 = _product$_extend3.other) === null || _product$_extend3 === void 0 ? void 0 : _product$_extend3.option) || []
|
|
375
|
+
vouchersApplicable: product.vouchersApplicable
|
|
393
376
|
};
|
|
394
377
|
return detail;
|
|
395
378
|
},
|
|
@@ -397,14 +380,8 @@ export var rulesHooks = {
|
|
|
397
380
|
var detail = _objectSpread(_objectSpread({}, product), {}, {
|
|
398
381
|
_id: values._id || product._id,
|
|
399
382
|
discount_list: values.discount_list,
|
|
400
|
-
_extend: _objectSpread(_objectSpread(_objectSpread(
|
|
401
|
-
other: _objectSpread(_objectSpread({}, product._extend.other), 'bundle' in values ? {
|
|
402
|
-
bundle: values.bundle
|
|
403
|
-
} : {})
|
|
404
|
-
}, 'total' in values ? {
|
|
383
|
+
_extend: _objectSpread(_objectSpread(_objectSpread({}, product._extend), 'total' in values ? {
|
|
405
384
|
total: values.total
|
|
406
|
-
} : {}), 'main_product_selling_price' in values ? {
|
|
407
|
-
main_product_selling_price: values.main_product_selling_price
|
|
408
385
|
} : {}), 'quantity' in values ? {
|
|
409
386
|
quantity: values.quantity
|
|
410
387
|
} : {})
|
|
@@ -22,7 +22,6 @@ import localeTexts from "./locales";
|
|
|
22
22
|
import { getAssetList, getDetailApi } from "./serve";
|
|
23
23
|
import { request } from "./../../../utils";
|
|
24
24
|
import { WalletBar, FooterButtons, UsageRules } from "../components";
|
|
25
|
-
import { formatScheduleText } from "../utils";
|
|
26
25
|
import "./index.less";
|
|
27
26
|
var Text = Typography.Text;
|
|
28
27
|
|
|
@@ -55,9 +54,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
55
54
|
_detail$expire_date = detail.expire_date,
|
|
56
55
|
expire_date = _detail$expire_date === void 0 ? '' : _detail$expire_date,
|
|
57
56
|
_detail$product = detail.product,
|
|
58
|
-
product = _detail$product === void 0 ? {} : _detail$product
|
|
59
|
-
custom_schedule_snapshot = detail.custom_schedule_snapshot;
|
|
60
|
-
console.log(detail, 'detail22');
|
|
57
|
+
product = _detail$product === void 0 ? {} : _detail$product;
|
|
61
58
|
var _ref = product || {},
|
|
62
59
|
_ref$description = _ref.description,
|
|
63
60
|
description = _ref$description === void 0 ? '' : _ref$description,
|
|
@@ -301,36 +298,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
301
298
|
onGoogleClick();
|
|
302
299
|
}
|
|
303
300
|
};
|
|
304
|
-
var scheduleList = useMemo(function () {
|
|
305
|
-
return (custom_schedule_snapshot === null || custom_schedule_snapshot === void 0 ? void 0 : custom_schedule_snapshot.data) || [];
|
|
306
|
-
}, [custom_schedule_snapshot]);
|
|
307
301
|
useEffect(function () {
|
|
308
|
-
var detail = formatScheduleText(scheduleList, 'zh-CN');
|
|
309
|
-
var expireText = expire_date ? expire_date : locales.getText('page.wallet.expireDate');
|
|
310
|
-
if (scheduleList.length > 0) {
|
|
311
|
-
// 换行展示
|
|
312
|
-
var validityTexts = "";
|
|
313
|
-
var excludedText = "";
|
|
314
|
-
var includedText = "";
|
|
315
|
-
detail.forEach(function (item) {
|
|
316
|
-
if (item.validityTexts.length > 0) {
|
|
317
|
-
validityTexts = "".concat(validityTexts).concat(item.validityTexts.join('\n'), "\n");
|
|
318
|
-
}
|
|
319
|
-
if (item.excluded_date.length > 0) {
|
|
320
|
-
excludedText = "".concat(excludedText).concat(item.excluded_date.join('\n'), "\n");
|
|
321
|
-
}
|
|
322
|
-
if (item.included_date.length > 0) {
|
|
323
|
-
includedText = "".concat(includedText).concat(item.included_date.join('\n'), "\n");
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
expireText = /*#__PURE__*/React.createElement("span", {
|
|
327
|
-
className: "wallet-detail-expire-text"
|
|
328
|
-
}, validityTexts, excludedText && /*#__PURE__*/React.createElement("div", {
|
|
329
|
-
className: "wallet-detail-expire-text-title"
|
|
330
|
-
}, locales.getText('page.wallet.notValidDate')), excludedText, includedText && /*#__PURE__*/React.createElement("div", {
|
|
331
|
-
className: "wallet-detail-expire-text-title"
|
|
332
|
-
}, locales.getText('page.wallet.includedDate')), includedText);
|
|
333
|
-
}
|
|
334
302
|
var data = [{
|
|
335
303
|
label: locales.getText('page.wallet.cardName'),
|
|
336
304
|
value: product_title
|
|
@@ -340,7 +308,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
340
308
|
isLink: false
|
|
341
309
|
}, {
|
|
342
310
|
label: locales.getText('page.wallet.validDate'),
|
|
343
|
-
value:
|
|
311
|
+
value: expire_date ? expire_date : locales.getText('page.wallet.expireDate')
|
|
344
312
|
}];
|
|
345
313
|
//折扣卡显示折扣字段 其他显示余额字段
|
|
346
314
|
if (tag === 'product_discount_card') {
|
|
@@ -373,14 +373,3 @@
|
|
|
373
373
|
font-weight: 500;
|
|
374
374
|
line-height: 24px;
|
|
375
375
|
}
|
|
376
|
-
|
|
377
|
-
.wallet-detail-expire-text {
|
|
378
|
-
white-space: pre-wrap;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.wallet-detail-expire-text-title {
|
|
382
|
-
font-size: 14px;
|
|
383
|
-
font-weight: 500;
|
|
384
|
-
line-height: 20px;
|
|
385
|
-
color: #667085;
|
|
386
|
-
}
|
|
@@ -21,8 +21,6 @@ declare const _default: {
|
|
|
21
21
|
'page.wallet.addGoogle': string;
|
|
22
22
|
'page.wallet.viewDetails': string;
|
|
23
23
|
'page.wallet.expireDate': string;
|
|
24
|
-
'page.wallet.notValidDate': string;
|
|
25
|
-
'page.wallet.includedDate': string;
|
|
26
24
|
'page.wallet.urlEmpty': string;
|
|
27
25
|
'page.wallet.notIOS': string;
|
|
28
26
|
'page.wallet.addSuccess': string;
|
|
@@ -71,8 +69,6 @@ declare const _default: {
|
|
|
71
69
|
'page.wallet.addGoogle': string;
|
|
72
70
|
'page.wallet.viewDetails': string;
|
|
73
71
|
'page.wallet.expireDate': string;
|
|
74
|
-
'page.wallet.notValidDate': string;
|
|
75
|
-
'page.wallet.includedDate': string;
|
|
76
72
|
'page.wallet.urlEmpty': string;
|
|
77
73
|
'page.wallet.notIOS': string;
|
|
78
74
|
'page.wallet.addSuccess': string;
|
|
@@ -121,8 +117,6 @@ declare const _default: {
|
|
|
121
117
|
'page.wallet.addGoogle': string;
|
|
122
118
|
'page.wallet.viewDetails': string;
|
|
123
119
|
'page.wallet.expireDate': string;
|
|
124
|
-
'page.wallet.notValidDate': string;
|
|
125
|
-
'page.wallet.includedDate': string;
|
|
126
120
|
'page.wallet.urlEmpty': string;
|
|
127
121
|
'page.wallet.notIOS': string;
|
|
128
122
|
'page.wallet.addSuccess': string;
|
|
@@ -24,10 +24,6 @@ export default {
|
|
|
24
24
|
'page.wallet.addGoogle': 'Add to Google Wallet',
|
|
25
25
|
'page.wallet.viewDetails': 'See details',
|
|
26
26
|
'page.wallet.expireDate': 'Long term',
|
|
27
|
-
'page.wallet.notValidDate': 'Not valid on',
|
|
28
|
-
// 不可用日期
|
|
29
|
-
'page.wallet.includedDate': 'Included dates',
|
|
30
|
-
// 包含日期
|
|
31
27
|
'page.wallet.urlEmpty': 'Wallet link is empty',
|
|
32
28
|
'page.wallet.notIOS': 'Apple Wallet is not supported on non-iOS devices',
|
|
33
29
|
'page.wallet.addSuccess': 'Successfully added to wallet',
|
|
@@ -80,10 +76,6 @@ export default {
|
|
|
80
76
|
'page.wallet.addGoogle': '添加到谷歌钱包',
|
|
81
77
|
'page.wallet.viewDetails': '查看详情',
|
|
82
78
|
'page.wallet.expireDate': '长期',
|
|
83
|
-
'page.wallet.notValidDate': '不可用日期',
|
|
84
|
-
// 不可用日期
|
|
85
|
-
'page.wallet.includedDate': '包含日期',
|
|
86
|
-
// 包含日期
|
|
87
79
|
'page.wallet.urlEmpty': '钱包链接为空',
|
|
88
80
|
'page.wallet.notIOS': '非iOS设备不支持Apple Wallet',
|
|
89
81
|
'page.wallet.addSuccess': '已成功添加到钱包',
|
|
@@ -95,7 +87,7 @@ export default {
|
|
|
95
87
|
// Usage Rules
|
|
96
88
|
'page.wallet.usageRules': '使用规则',
|
|
97
89
|
'page.wallet.usageRulesSubtitle': '请仔细阅读以下使用条件',
|
|
98
|
-
'page.wallet.timeUsageLimits': '
|
|
90
|
+
'page.wallet.timeUsageLimits': '时间使用限制',
|
|
99
91
|
'page.wallet.totalQuantityControl': '总量控制',
|
|
100
92
|
'page.wallet.dailyLimit': '每日限制:',
|
|
101
93
|
'page.wallet.weeklyLimit': '每周限制:',
|
|
@@ -136,10 +128,6 @@ export default {
|
|
|
136
128
|
'page.wallet.addGoogle': '添加到谷歌錢包',
|
|
137
129
|
'page.wallet.viewDetails': '查看詳情',
|
|
138
130
|
'page.wallet.expireDate': '長期',
|
|
139
|
-
'page.wallet.notValidDate': '不可用日期',
|
|
140
|
-
// 不可用日期
|
|
141
|
-
'page.wallet.includedDate': '包含日期',
|
|
142
|
-
// 包含日期
|
|
143
131
|
'page.wallet.urlEmpty': '錢包連結為空',
|
|
144
132
|
'page.wallet.notIOS': '非iOS設備不支持Apple Wallet',
|
|
145
133
|
'page.wallet.addSuccess': '已成功添加到錢包',
|
|
@@ -151,7 +139,7 @@ export default {
|
|
|
151
139
|
// Usage Rules
|
|
152
140
|
'page.wallet.usageRules': '使用規則',
|
|
153
141
|
'page.wallet.usageRulesSubtitle': '請仔細閱讀以下使用條件',
|
|
154
|
-
'page.wallet.timeUsageLimits': '
|
|
142
|
+
'page.wallet.timeUsageLimits': '時間使用限制',
|
|
155
143
|
'page.wallet.totalQuantityControl': '總量控制',
|
|
156
144
|
'page.wallet.dailyLimit': '每日限制:',
|
|
157
145
|
'page.wallet.weeklyLimit': '每週限制:',
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
addWalletCard: any;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
walletDetailState: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: number;
|
|
4
|
+
setup?: 'menu' | 'list' | 'detail' | string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
7
|
+
state: RechargeState;
|
|
8
|
+
} & {
|
|
9
|
+
dispatch: (params: {
|
|
10
|
+
type: string;
|
|
11
|
+
payload: any;
|
|
12
|
+
}) => void;
|
|
13
|
+
}>;
|
|
14
|
+
export {};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
state: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
selectedGiftOptionId: string | null;
|
|
4
|
+
cardList: Array<{
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
price: number;
|
|
8
|
+
}>;
|
|
9
|
+
selectedItem: {
|
|
10
|
+
id?: string;
|
|
11
|
+
gift_price?: number;
|
|
12
|
+
price?: number;
|
|
13
|
+
name?: string;
|
|
14
|
+
variant_id?: string;
|
|
15
|
+
};
|
|
16
|
+
productId?: string;
|
|
17
|
+
detailId?: string;
|
|
18
|
+
total: string | number;
|
|
19
|
+
rechargeModalOpen: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
22
|
+
state: RechargeState;
|
|
23
|
+
} & {
|
|
24
|
+
dispatch: (params: {
|
|
25
|
+
type: string;
|
|
26
|
+
payload: any;
|
|
27
|
+
}) => void;
|
|
28
|
+
}>;
|
|
29
|
+
export {};
|
|
@@ -48,17 +48,6 @@ var Voucher = Provider(function (props) {
|
|
|
48
48
|
}
|
|
49
49
|
}, [globalState.setup]);
|
|
50
50
|
|
|
51
|
-
// 添加处理后退按钮的方法
|
|
52
|
-
var handleBack = useCallback(function () {
|
|
53
|
-
if (recordViewRef.current) {
|
|
54
|
-
recordViewRef.current.closeDetailModal();
|
|
55
|
-
}
|
|
56
|
-
// 更新状态
|
|
57
|
-
setGlobalState({
|
|
58
|
-
setup: 'list'
|
|
59
|
-
});
|
|
60
|
-
}, [recordViewRef, setGlobalState]);
|
|
61
|
-
|
|
62
51
|
// 渲染卡片项
|
|
63
52
|
var renderItem = function renderItem(item) {
|
|
64
53
|
return /*#__PURE__*/React.createElement(WalletCard, {
|
|
@@ -78,6 +67,16 @@ var Voucher = Provider(function (props) {
|
|
|
78
67
|
if (isEmpty) {
|
|
79
68
|
return /*#__PURE__*/React.createElement(PisellEmpty, null);
|
|
80
69
|
}
|
|
70
|
+
// 添加处理后退按钮的方法
|
|
71
|
+
var handleBack = useCallback(function () {
|
|
72
|
+
if (recordViewRef.current) {
|
|
73
|
+
recordViewRef.current.closeDetailModal();
|
|
74
|
+
}
|
|
75
|
+
// 更新状态
|
|
76
|
+
setGlobalState({
|
|
77
|
+
setup: 'list'
|
|
78
|
+
});
|
|
79
|
+
}, [recordViewRef, setGlobalState]);
|
|
81
80
|
return /*#__PURE__*/React.createElement(React.Fragment, null, platform !== 'pc' && /*#__PURE__*/React.createElement(Title, {
|
|
82
81
|
className: "wallet-voucher-title"
|
|
83
82
|
}, locales.getText('page.wallet.voucher')), /*#__PURE__*/React.createElement(CardMetricItem, {
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: 0;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
state: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["id", "tag", "product_title", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "par_value", "unified_messages"
|
|
1
|
+
var _excluded = ["id", "tag", "product_title", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "par_value", "unified_messages"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -40,8 +40,6 @@ var WalletCard = function WalletCard(_ref) {
|
|
|
40
40
|
par_value = _item$par_value === void 0 ? '' : _item$par_value,
|
|
41
41
|
_item$unified_message = item.unified_messages,
|
|
42
42
|
unified_messages = _item$unified_message === void 0 ? {} : _item$unified_message,
|
|
43
|
-
custom_schedule_snapshot = item.custom_schedule_snapshot,
|
|
44
|
-
metadata = item.metadata,
|
|
45
43
|
rest = _objectWithoutProperties(item, _excluded);
|
|
46
44
|
|
|
47
45
|
// 获取平台
|
|
@@ -60,8 +58,6 @@ var WalletCard = function WalletCard(_ref) {
|
|
|
60
58
|
// 是否禁用
|
|
61
59
|
var isDisabled = limit_status !== 'enable';
|
|
62
60
|
return /*#__PURE__*/React.createElement(PisellWalletPassCard, _extends({}, rest, {
|
|
63
|
-
scheduleList: (custom_schedule_snapshot === null || custom_schedule_snapshot === void 0 ? void 0 : custom_schedule_snapshot.data) || [],
|
|
64
|
-
validDateBySchedule: (metadata === null || metadata === void 0 ? void 0 : metadata.validity_type) === 'custom_schedule_validity',
|
|
65
61
|
balanceTitle: balanceTitle,
|
|
66
62
|
showDetail: false,
|
|
67
63
|
showRedeem: false,
|