@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
|
@@ -20,63 +20,4 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
// 收起状态
|
|
25
|
-
&.collapsed {
|
|
26
|
-
position: fixed;
|
|
27
|
-
bottom: 0;
|
|
28
|
-
left: 86px;
|
|
29
|
-
padding: 0;
|
|
30
|
-
background-color: transparent;
|
|
31
|
-
display: block;
|
|
32
|
-
// 高度通过内联样式动态设置以补偿 body 的 scale
|
|
33
|
-
|
|
34
|
-
.pisell-ticket-booking-time-bar-collapsed-content {
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: space-between;
|
|
38
|
-
width: 100%;
|
|
39
|
-
// 高度通过内联样式动态设置以补偿 body 的 scale
|
|
40
|
-
padding: 0 16px;
|
|
41
|
-
background-color: #fff;
|
|
42
|
-
border-radius: 0 8px 8px 0;
|
|
43
|
-
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
44
|
-
box-sizing: border-box;
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
|
|
47
|
-
.pisell-ticket-booking-time-bar-collapsed-today {
|
|
48
|
-
font-weight: 600;
|
|
49
|
-
font-size: 18px;
|
|
50
|
-
color: #000;
|
|
51
|
-
flex-shrink: 0;
|
|
52
|
-
margin-right: 16px;
|
|
53
|
-
// line-height 通过内联样式动态设置
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.pisell-ticket-booking-time-bar-collapsed-expand {
|
|
57
|
-
color: #7F56DA;
|
|
58
|
-
padding: 0;
|
|
59
|
-
margin: 0;
|
|
60
|
-
height: auto;
|
|
61
|
-
font-size: 18px;
|
|
62
|
-
font-weight: 500;
|
|
63
|
-
display: inline-flex;
|
|
64
|
-
align-items: center;
|
|
65
|
-
flex-shrink: 0;
|
|
66
|
-
// line-height 通过内联样式动态设置
|
|
67
|
-
|
|
68
|
-
&:hover {
|
|
69
|
-
color: #6941c6;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
span {
|
|
73
|
-
margin-right: 2px;
|
|
74
|
-
}
|
|
75
|
-
.anticon {
|
|
76
|
-
margin-left: 0px;
|
|
77
|
-
margin-right: 0px;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
23
|
}
|
|
@@ -38,21 +38,17 @@ var import_react = require("react");
|
|
|
38
38
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
39
39
|
var import_dayjs = __toESM(require("dayjs"));
|
|
40
40
|
var useProducts = (notAvailableRef) => {
|
|
41
|
-
var _a;
|
|
42
41
|
const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
|
|
43
42
|
const context = (0, import_useEngineContext.default)();
|
|
44
43
|
const platform = (0, import_useEngineContext.usePlatform)();
|
|
45
44
|
const [products, setProducts] = (0, import_react.useState)([]);
|
|
46
45
|
const [loading, setLoading] = (0, import_react.useState)(true);
|
|
47
46
|
const isFirstLoadRef = (0, import_react.useRef)(true);
|
|
48
|
-
const isFirstLoadDataRef = (0, import_react.useRef)(true);
|
|
49
|
-
const { getApp } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
50
|
-
const app = getApp();
|
|
51
47
|
const [scheduleTimePoints, setScheduleTimePoints] = (0, import_react.useState)([]);
|
|
52
48
|
const scheduledTaskQueueIdRef = (0, import_react.useRef)("booking-schedule-products");
|
|
53
49
|
const paramsRef = (0, import_react.useRef)(void 0);
|
|
54
50
|
const getProducts = (0, import_ahooks.useMemoizedFn)(async (params) => {
|
|
55
|
-
var
|
|
51
|
+
var _a;
|
|
56
52
|
setLoading(true);
|
|
57
53
|
try {
|
|
58
54
|
paramsRef.current = params;
|
|
@@ -62,30 +58,30 @@ var useProducts = (notAvailableRef) => {
|
|
|
62
58
|
isFirstLoadRef.current = false;
|
|
63
59
|
} catch (error) {
|
|
64
60
|
if ((error == null ? void 0 : error.code) === 607100 && (isFirstLoadRef.current || products.length > 0)) {
|
|
65
|
-
(
|
|
61
|
+
(_a = notAvailableRef.current) == null ? void 0 : _a.open();
|
|
66
62
|
}
|
|
67
63
|
setLoading(false);
|
|
68
64
|
isFirstLoadRef.current = false;
|
|
69
65
|
}
|
|
70
66
|
});
|
|
71
67
|
(0, import_react.useEffect)(() => {
|
|
72
|
-
var
|
|
68
|
+
var _a, _b, _c;
|
|
73
69
|
if (platform === "shop") {
|
|
74
70
|
return;
|
|
75
71
|
}
|
|
76
72
|
try {
|
|
77
|
-
const
|
|
78
|
-
if (!
|
|
73
|
+
const app = (_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getApp) == null ? void 0 : _c.call(_b);
|
|
74
|
+
if (!app || !app.tasksManager) {
|
|
79
75
|
console.warn("App 或 tasksManager 不可用");
|
|
80
76
|
return;
|
|
81
77
|
}
|
|
82
|
-
|
|
78
|
+
app.tasksManager.addTaskFunction("getProducts", async ({ task }) => {
|
|
83
79
|
console.log("定时执行 getProducts,参数:", task.payload);
|
|
84
80
|
await getProducts(task.payload);
|
|
85
81
|
return { status: "success" };
|
|
86
82
|
});
|
|
87
83
|
if (scheduleTimePoints && scheduleTimePoints.length > 0) {
|
|
88
|
-
|
|
84
|
+
app.tasksManager.clearTasks({
|
|
89
85
|
module: "scheduledTasks",
|
|
90
86
|
queueId: scheduledTaskQueueIdRef.current
|
|
91
87
|
});
|
|
@@ -106,12 +102,12 @@ var useProducts = (notAvailableRef) => {
|
|
|
106
102
|
}
|
|
107
103
|
};
|
|
108
104
|
});
|
|
109
|
-
|
|
105
|
+
app.tasksManager.addTask({
|
|
110
106
|
module: "scheduledTasks",
|
|
111
107
|
queueId: scheduledTaskQueueIdRef.current,
|
|
112
108
|
tasks
|
|
113
109
|
});
|
|
114
|
-
|
|
110
|
+
app.tasksManager.run({
|
|
115
111
|
module: "scheduledTasks",
|
|
116
112
|
queueId: scheduledTaskQueueIdRef.current
|
|
117
113
|
});
|
|
@@ -121,11 +117,11 @@ var useProducts = (notAvailableRef) => {
|
|
|
121
117
|
console.error("创建定时任务失败:", error);
|
|
122
118
|
}
|
|
123
119
|
return () => {
|
|
124
|
-
var
|
|
120
|
+
var _a2, _b2, _c2;
|
|
125
121
|
try {
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
128
|
-
|
|
122
|
+
const app = (_c2 = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.getApp) == null ? void 0 : _c2.call(_b2);
|
|
123
|
+
if (app && app.tasksManager) {
|
|
124
|
+
app.tasksManager.clearTasks({
|
|
129
125
|
module: "scheduledTasks",
|
|
130
126
|
queueId: scheduledTaskQueueIdRef.current
|
|
131
127
|
});
|
|
@@ -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;
|
|
@@ -87,9 +87,7 @@ var locales_default = {
|
|
|
87
87
|
"pisell2.ticket-booking.terminal-upgrade-title": "Terminal Version Reminder",
|
|
88
88
|
"pisell2.ticket-booking.terminal-upgrade-description": "Your Terminal version is outdated. Please upgrade Terminal to use all features.",
|
|
89
89
|
"pisell2.ticket-booking.terminal-upgrade-ok": "I understand",
|
|
90
|
-
"pisell2.ticket-booking.terminal-upgrade-cancel": "Cancel"
|
|
91
|
-
"pisell2.ticket-booking.collapse": "Collapse",
|
|
92
|
-
"pisell2.ticket-booking.expand": "Expand"
|
|
90
|
+
"pisell2.ticket-booking.terminal-upgrade-cancel": "Cancel"
|
|
93
91
|
},
|
|
94
92
|
"zh-CN": {
|
|
95
93
|
"pisell2.ticket-booking.info": "信息",
|
|
@@ -155,9 +153,7 @@ var locales_default = {
|
|
|
155
153
|
"pisell2.ticket-booking.terminal-upgrade-title": "Terminal版本提醒",
|
|
156
154
|
"pisell2.ticket-booking.terminal-upgrade-description": "检测到您的Terminal版本较低,请升级Terminal以使用完整功能",
|
|
157
155
|
"pisell2.ticket-booking.terminal-upgrade-ok": "我知道了",
|
|
158
|
-
"pisell2.ticket-booking.terminal-upgrade-cancel": "取消"
|
|
159
|
-
"pisell2.ticket-booking.collapse": "收起",
|
|
160
|
-
"pisell2.ticket-booking.expand": "展开"
|
|
156
|
+
"pisell2.ticket-booking.terminal-upgrade-cancel": "取消"
|
|
161
157
|
},
|
|
162
158
|
"zh-HK": {
|
|
163
159
|
"pisell2.ticket-booking.info": "資訊",
|
|
@@ -223,8 +219,6 @@ var locales_default = {
|
|
|
223
219
|
"pisell2.ticket-booking.terminal-upgrade-title": "Terminal版本提醒",
|
|
224
220
|
"pisell2.ticket-booking.terminal-upgrade-description": "檢測到您的Terminal版本較低,請升級Terminal以使用完整功能",
|
|
225
221
|
"pisell2.ticket-booking.terminal-upgrade-ok": "我知道了",
|
|
226
|
-
"pisell2.ticket-booking.terminal-upgrade-cancel": "取消"
|
|
227
|
-
"pisell2.ticket-booking.collapse": "收起",
|
|
228
|
-
"pisell2.ticket-booking.expand": "展開"
|
|
222
|
+
"pisell2.ticket-booking.terminal-upgrade-cancel": "取消"
|
|
229
223
|
}
|
|
230
224
|
};
|
|
@@ -197,17 +197,12 @@ var addService = (list, addItem, state) => {
|
|
|
197
197
|
let isNotSame = true;
|
|
198
198
|
let isSetCount = false;
|
|
199
199
|
value = list.map((item) => {
|
|
200
|
-
var _a2, _b, _c
|
|
200
|
+
var _a2, _b, _c;
|
|
201
201
|
const isGoodPassDiscountProduct = (item.discount_list || []).some((item2) => item2.type === "good_pass");
|
|
202
202
|
const isEdit = item == null ? void 0 : item.edit;
|
|
203
|
-
|
|
204
|
-
(((_b = (_a2 = item == null ? void 0 : item._extend) == null ? void 0 : _a2.other) == null ? void 0 : _b.bundle) || []).forEach((item2) => {
|
|
205
|
-
bundleDiscountList.push(...(item2 == null ? void 0 : item2.discount_list) || []);
|
|
206
|
-
});
|
|
207
|
-
const isGoodPassBundleProduct = bundleDiscountList.some((item2) => item2.type === "good_pass");
|
|
208
|
-
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit && !isGoodPassBundleProduct) {
|
|
203
|
+
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit) {
|
|
209
204
|
isNotSame = false;
|
|
210
|
-
const quantity = (((
|
|
205
|
+
const quantity = (((_a2 = item == null ? void 0 : item._extend) == null ? void 0 : _a2.quantity) || 1) + (((_b = addItem == null ? void 0 : addItem._extend) == null ? void 0 : _b.quantity) || 1);
|
|
211
206
|
count = quantity;
|
|
212
207
|
isSetCount = true;
|
|
213
208
|
return {
|
|
@@ -216,7 +211,7 @@ var addService = (list, addItem, state) => {
|
|
|
216
211
|
...item._extend,
|
|
217
212
|
quantity,
|
|
218
213
|
other: {
|
|
219
|
-
...((
|
|
214
|
+
...((_c = item._extend) == null ? void 0 : _c.other) || {},
|
|
220
215
|
quantity
|
|
221
216
|
}
|
|
222
217
|
}
|
|
@@ -346,21 +341,17 @@ var getShopDiscountKey = (osKey) => {
|
|
|
346
341
|
var rulesHooks = {
|
|
347
342
|
// 获取商品关键信息
|
|
348
343
|
getProduct(product) {
|
|
349
|
-
var _a, _b, _c, _d, _e;
|
|
350
344
|
const detail = {
|
|
351
345
|
booking_id: product.booking_id,
|
|
352
346
|
id: product.id,
|
|
353
347
|
_id: product._id,
|
|
354
|
-
price: product.
|
|
348
|
+
price: product.price,
|
|
355
349
|
total: product._extend.total,
|
|
356
350
|
discount_list: product.discount_list,
|
|
357
351
|
origin_total: product._extend.origin_total,
|
|
358
352
|
num: product._extend.quantity,
|
|
359
353
|
quantity: product._extend.quantity || 1,
|
|
360
|
-
vouchersApplicable: product.vouchersApplicable
|
|
361
|
-
startDate: (_a = product._extend) == null ? void 0 : _a.startDate,
|
|
362
|
-
bundle: ((_c = (_b = product._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle) || [],
|
|
363
|
-
options: ((_e = (_d = product._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.option) || []
|
|
354
|
+
vouchersApplicable: product.vouchersApplicable
|
|
364
355
|
};
|
|
365
356
|
return detail;
|
|
366
357
|
},
|
|
@@ -371,12 +362,7 @@ var rulesHooks = {
|
|
|
371
362
|
discount_list: values.discount_list,
|
|
372
363
|
_extend: {
|
|
373
364
|
...product._extend,
|
|
374
|
-
other: {
|
|
375
|
-
...product._extend.other,
|
|
376
|
-
..."bundle" in values ? { bundle: values.bundle } : {}
|
|
377
|
-
},
|
|
378
365
|
..."total" in values ? { total: values.total } : {},
|
|
379
|
-
..."main_product_selling_price" in values ? { main_product_selling_price: values.main_product_selling_price } : {},
|
|
380
366
|
..."quantity" in values ? { quantity: values.quantity } : {}
|
|
381
367
|
}
|
|
382
368
|
};
|
|
@@ -45,7 +45,6 @@ var import_locales = __toESM(require("./locales"));
|
|
|
45
45
|
var import_serve = require("./serve");
|
|
46
46
|
var import_utils2 = require("./../../../utils");
|
|
47
47
|
var import_components = require("../components");
|
|
48
|
-
var import_utils3 = require("../utils");
|
|
49
48
|
var import_index = require("./index.less");
|
|
50
49
|
var { Text } = import_materials2.Typography;
|
|
51
50
|
import_dayjs.default.extend(import_timezone.default);
|
|
@@ -66,10 +65,8 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
66
65
|
encoded = "",
|
|
67
66
|
balance,
|
|
68
67
|
expire_date = "",
|
|
69
|
-
product = {}
|
|
70
|
-
custom_schedule_snapshot
|
|
68
|
+
product = {}
|
|
71
69
|
} = detail;
|
|
72
|
-
console.log(detail, "detail22");
|
|
73
70
|
const {
|
|
74
71
|
description = "",
|
|
75
72
|
extension_data = [],
|
|
@@ -215,33 +212,8 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
215
212
|
onGoogleClick();
|
|
216
213
|
}
|
|
217
214
|
};
|
|
218
|
-
const scheduleList = (0, import_react.useMemo)(() => {
|
|
219
|
-
return (custom_schedule_snapshot == null ? void 0 : custom_schedule_snapshot.data) || [];
|
|
220
|
-
}, [custom_schedule_snapshot]);
|
|
221
215
|
(0, import_react.useEffect)(() => {
|
|
222
216
|
var _a2;
|
|
223
|
-
const detail2 = (0, import_utils3.formatScheduleText)(scheduleList, "zh-CN");
|
|
224
|
-
let expireText = expire_date ? expire_date : import_utils.locales.getText("page.wallet.expireDate");
|
|
225
|
-
if (scheduleList.length > 0) {
|
|
226
|
-
let validityTexts = "";
|
|
227
|
-
let excludedText = "";
|
|
228
|
-
let includedText = "";
|
|
229
|
-
detail2.forEach((item) => {
|
|
230
|
-
if (item.validityTexts.length > 0) {
|
|
231
|
-
validityTexts = `${validityTexts}${item.validityTexts.join("\n")}
|
|
232
|
-
`;
|
|
233
|
-
}
|
|
234
|
-
if (item.excluded_date.length > 0) {
|
|
235
|
-
excludedText = `${excludedText}${item.excluded_date.join("\n")}
|
|
236
|
-
`;
|
|
237
|
-
}
|
|
238
|
-
if (item.included_date.length > 0) {
|
|
239
|
-
includedText = `${includedText}${item.included_date.join("\n")}
|
|
240
|
-
`;
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
expireText = /* @__PURE__ */ import_react.default.createElement("span", { className: "wallet-detail-expire-text" }, validityTexts, excludedText && /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-expire-text-title" }, import_utils.locales.getText("page.wallet.notValidDate")), excludedText, includedText && /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-expire-text-title" }, import_utils.locales.getText("page.wallet.includedDate")), includedText);
|
|
244
|
-
}
|
|
245
217
|
let data = [
|
|
246
218
|
{
|
|
247
219
|
label: import_utils.locales.getText("page.wallet.cardName"),
|
|
@@ -254,11 +226,11 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
254
226
|
},
|
|
255
227
|
{
|
|
256
228
|
label: import_utils.locales.getText("page.wallet.validDate"),
|
|
257
|
-
value:
|
|
229
|
+
value: expire_date ? expire_date : import_utils.locales.getText("page.wallet.expireDate")
|
|
258
230
|
}
|
|
259
231
|
];
|
|
260
232
|
if (tag === "product_discount_card") {
|
|
261
|
-
const isFixedAmount = ((_a2 =
|
|
233
|
+
const isFixedAmount = ((_a2 = detail.metadata) == null ? void 0 : _a2.discount_card_type) === "fixed_amount";
|
|
262
234
|
data.splice(2, 0, {
|
|
263
235
|
label: import_utils.locales.getText("page.wallet.discount"),
|
|
264
236
|
value: balance ? isFixedAmount ? `${symbol}${Number(balance)}` : `${Number(balance)}%` : ""
|
|
@@ -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;
|
|
@@ -48,10 +48,6 @@ var locales_default = {
|
|
|
48
48
|
"page.wallet.addGoogle": "Add to Google Wallet",
|
|
49
49
|
"page.wallet.viewDetails": "See details",
|
|
50
50
|
"page.wallet.expireDate": "Long term",
|
|
51
|
-
"page.wallet.notValidDate": "Not valid on",
|
|
52
|
-
// 不可用日期
|
|
53
|
-
"page.wallet.includedDate": "Included dates",
|
|
54
|
-
// 包含日期
|
|
55
51
|
"page.wallet.urlEmpty": "Wallet link is empty",
|
|
56
52
|
"page.wallet.notIOS": "Apple Wallet is not supported on non-iOS devices",
|
|
57
53
|
"page.wallet.addSuccess": "Successfully added to wallet",
|
|
@@ -104,10 +100,6 @@ var locales_default = {
|
|
|
104
100
|
"page.wallet.addGoogle": "添加到谷歌钱包",
|
|
105
101
|
"page.wallet.viewDetails": "查看详情",
|
|
106
102
|
"page.wallet.expireDate": "长期",
|
|
107
|
-
"page.wallet.notValidDate": "不可用日期",
|
|
108
|
-
// 不可用日期
|
|
109
|
-
"page.wallet.includedDate": "包含日期",
|
|
110
|
-
// 包含日期
|
|
111
103
|
"page.wallet.urlEmpty": "钱包链接为空",
|
|
112
104
|
"page.wallet.notIOS": "非iOS设备不支持Apple Wallet",
|
|
113
105
|
"page.wallet.addSuccess": "已成功添加到钱包",
|
|
@@ -119,7 +111,7 @@ var locales_default = {
|
|
|
119
111
|
// Usage Rules
|
|
120
112
|
"page.wallet.usageRules": "使用规则",
|
|
121
113
|
"page.wallet.usageRulesSubtitle": "请仔细阅读以下使用条件",
|
|
122
|
-
"page.wallet.timeUsageLimits": "
|
|
114
|
+
"page.wallet.timeUsageLimits": "时间使用限制",
|
|
123
115
|
"page.wallet.totalQuantityControl": "总量控制",
|
|
124
116
|
"page.wallet.dailyLimit": "每日限制:",
|
|
125
117
|
"page.wallet.weeklyLimit": "每周限制:",
|
|
@@ -160,10 +152,6 @@ var locales_default = {
|
|
|
160
152
|
"page.wallet.addGoogle": "添加到谷歌錢包",
|
|
161
153
|
"page.wallet.viewDetails": "查看詳情",
|
|
162
154
|
"page.wallet.expireDate": "長期",
|
|
163
|
-
"page.wallet.notValidDate": "不可用日期",
|
|
164
|
-
// 不可用日期
|
|
165
|
-
"page.wallet.includedDate": "包含日期",
|
|
166
|
-
// 包含日期
|
|
167
155
|
"page.wallet.urlEmpty": "錢包連結為空",
|
|
168
156
|
"page.wallet.notIOS": "非iOS設備不支持Apple Wallet",
|
|
169
157
|
"page.wallet.addSuccess": "已成功添加到錢包",
|
|
@@ -175,7 +163,7 @@ var locales_default = {
|
|
|
175
163
|
// Usage Rules
|
|
176
164
|
"page.wallet.usageRules": "使用規則",
|
|
177
165
|
"page.wallet.usageRulesSubtitle": "請仔細閱讀以下使用條件",
|
|
178
|
-
"page.wallet.timeUsageLimits": "
|
|
166
|
+
"page.wallet.timeUsageLimits": "時間使用限制",
|
|
179
167
|
"page.wallet.totalQuantityControl": "總量控制",
|
|
180
168
|
"page.wallet.dailyLimit": "每日限制:",
|
|
181
169
|
"page.wallet.weeklyLimit": "每週限制:",
|
|
@@ -65,14 +65,6 @@ var Voucher = (0, import_model.Provider)((props) => {
|
|
|
65
65
|
recordViewRef.current.closeDetailModal();
|
|
66
66
|
}
|
|
67
67
|
}, [globalState.setup]);
|
|
68
|
-
const handleBack = (0, import_react.useCallback)(() => {
|
|
69
|
-
if (recordViewRef.current) {
|
|
70
|
-
recordViewRef.current.closeDetailModal();
|
|
71
|
-
}
|
|
72
|
-
setGlobalState({
|
|
73
|
-
setup: "list"
|
|
74
|
-
});
|
|
75
|
-
}, [recordViewRef, setGlobalState]);
|
|
76
68
|
const renderItem = (item) => /* @__PURE__ */ import_react.default.createElement(
|
|
77
69
|
import_WalletCard.default,
|
|
78
70
|
{
|
|
@@ -90,6 +82,14 @@ var Voucher = (0, import_model.Provider)((props) => {
|
|
|
90
82
|
if (isEmpty) {
|
|
91
83
|
return /* @__PURE__ */ import_react.default.createElement(import_materials.PisellEmpty, null);
|
|
92
84
|
}
|
|
85
|
+
const handleBack = (0, import_react.useCallback)(() => {
|
|
86
|
+
if (recordViewRef.current) {
|
|
87
|
+
recordViewRef.current.closeDetailModal();
|
|
88
|
+
}
|
|
89
|
+
setGlobalState({
|
|
90
|
+
setup: "list"
|
|
91
|
+
});
|
|
92
|
+
}, [recordViewRef, setGlobalState]);
|
|
93
93
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, platform !== "pc" && /* @__PURE__ */ import_react.default.createElement(Title, { className: "wallet-voucher-title" }, import_utils.locales.getText("page.wallet.voucher")), /* @__PURE__ */ import_react.default.createElement(
|
|
94
94
|
import_materials.CardMetricItem,
|
|
95
95
|
{
|
|
@@ -55,8 +55,6 @@ var WalletCard = ({
|
|
|
55
55
|
product_cover = "",
|
|
56
56
|
par_value = "",
|
|
57
57
|
unified_messages = {},
|
|
58
|
-
custom_schedule_snapshot,
|
|
59
|
-
metadata,
|
|
60
58
|
...rest
|
|
61
59
|
} = item;
|
|
62
60
|
const platform = (0, import_react.useMemo)(() => (0, import_utils.isMobile)() ? "h5" : "pc", []);
|
|
@@ -68,8 +66,6 @@ var WalletCard = ({
|
|
|
68
66
|
import_materials.PisellWalletPassCard,
|
|
69
67
|
{
|
|
70
68
|
...rest,
|
|
71
|
-
scheduleList: (custom_schedule_snapshot == null ? void 0 : custom_schedule_snapshot.data) || [],
|
|
72
|
-
validDateBySchedule: (metadata == null ? void 0 : metadata.validity_type) === "custom_schedule_validity",
|
|
73
69
|
balanceTitle,
|
|
74
70
|
showDetail: false,
|
|
75
71
|
showRedeem: false,
|
|
@@ -88,7 +88,7 @@ var Wallet = (0, import_model.Provider)(() => {
|
|
|
88
88
|
import_utils2.request.setRequest(utils == null ? void 0 : utils.request);
|
|
89
89
|
(0, import_react.useEffect)(() => {
|
|
90
90
|
document.body.id = "body";
|
|
91
|
-
getList({ num: 999, skip: 1
|
|
91
|
+
getList({ num: 999, skip: 1 });
|
|
92
92
|
}, []);
|
|
93
93
|
const transformData = (data) => {
|
|
94
94
|
const result = {};
|
|
@@ -353,7 +353,7 @@ var Wallet = (0, import_model.Provider)(() => {
|
|
|
353
353
|
content: successMessage,
|
|
354
354
|
duration: 2
|
|
355
355
|
});
|
|
356
|
-
getList({ num: 999, skip: 1
|
|
356
|
+
getList({ num: 999, skip: 1 }, code);
|
|
357
357
|
}
|
|
358
358
|
dispatch({
|
|
359
359
|
type: "setState",
|
|
@@ -15,7 +15,6 @@ export interface IWalletListParmsProps {
|
|
|
15
15
|
used_status?: string;
|
|
16
16
|
num?: number;
|
|
17
17
|
skip?: number;
|
|
18
|
-
with?: string[];
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
21
20
|
* 钱包列表项属性接口
|
|
@@ -49,12 +48,6 @@ export interface IWalletListItemProps {
|
|
|
49
48
|
machinecode_config?: {
|
|
50
49
|
hide_recharge?: number;
|
|
51
50
|
};
|
|
52
|
-
metadata: {
|
|
53
|
-
validity_type: string;
|
|
54
|
-
};
|
|
55
|
-
custom_schedule_snapshot: {
|
|
56
|
-
data: any[];
|
|
57
|
-
};
|
|
58
51
|
}
|
|
59
52
|
/**
|
|
60
53
|
* 商店信息接口
|
package/lib/index.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ export { default as EftposPay } from './components/eftposPay';
|
|
|
23
23
|
export { default as ToCPay } from './components/pay/toC';
|
|
24
24
|
export { default as ToBPay } from './components/pay/toB';
|
|
25
25
|
export { default as Eftpos } from './components/eftpos';
|
|
26
|
-
export { default as Wallet } from './components/wallet';
|
|
27
26
|
export { default as WalletList } from './components/walletList';
|
|
28
27
|
export { default as BookingDashboard } from './components/booking/dashboard';
|
|
29
28
|
export { default as PisellSelectCustomerModal } from './components/pisellSelectCustomerModal';
|
|
@@ -70,7 +69,4 @@ export { default as ContactInfoModal } from './plus/contactInfoModal';
|
|
|
70
69
|
export { Login2, Register2, AuthModal } from './pro/Login2.0';
|
|
71
70
|
export { default as WalletEditor } from './plus/walletEditor';
|
|
72
71
|
export { default as WalletPassGallery } from './plus/walletPassGallery';
|
|
73
|
-
export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
|
|
74
|
-
export { default as SettingsRegistry } from './components/systemSettings/registry';
|
|
75
72
|
export { default as WebPosLogin } from './plus/webPosLogin';
|
|
76
|
-
export { default as PaymentModal } from './components/checkout/plugin';
|
package/lib/index.js
CHANGED
|
@@ -74,7 +74,6 @@ __export(src_exports, {
|
|
|
74
74
|
OnlineShopAuth: () => import_admin.OnlineShopAuth,
|
|
75
75
|
OrgAdminAuth: () => import_admin.OrgAdminAuth,
|
|
76
76
|
POSOperatorAuth: () => import_admin.POSOperatorAuth,
|
|
77
|
-
PaymentModal: () => import_plugin.default,
|
|
78
77
|
PinModal: () => import_pinModal.default,
|
|
79
78
|
PinVerifyModal: () => import_pinVerifyModal.default,
|
|
80
79
|
PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
|
|
@@ -93,7 +92,6 @@ __export(src_exports, {
|
|
|
93
92
|
SaasLogin: () => import_saasLogin.default,
|
|
94
93
|
SaasRegister: () => import_saasRegister.default,
|
|
95
94
|
Schedules: () => import_schedules.default,
|
|
96
|
-
SettingsRegistry: () => import_registry.default,
|
|
97
95
|
ShoppingCart: () => import_shoppingCart.default,
|
|
98
96
|
SkuCard: () => import_SkuCard.default,
|
|
99
97
|
SkuList: () => import_list.ResponsiveList,
|
|
@@ -105,10 +103,8 @@ __export(src_exports, {
|
|
|
105
103
|
ToCPay: () => import_toC.default,
|
|
106
104
|
VerticalAddService: () => import_addServiceVariant.default,
|
|
107
105
|
VerticalClient: () => import_clientVariant.VerticalClient,
|
|
108
|
-
Wallet: () => import_wallet.default,
|
|
109
106
|
WalletEditor: () => import_walletEditor.default,
|
|
110
107
|
WalletList: () => import_walletList.default,
|
|
111
|
-
WalletPassDetail: () => import_passDetail.default,
|
|
112
108
|
WalletPassGallery: () => import_walletPassGallery.default,
|
|
113
109
|
WebPosLogin: () => import_webPosLogin.default,
|
|
114
110
|
WorkspaceList: () => import_workSpaceList.default,
|
|
@@ -142,7 +138,6 @@ var import_eftposPay = __toESM(require("./components/eftposPay"));
|
|
|
142
138
|
var import_toC = __toESM(require("./components/pay/toC"));
|
|
143
139
|
var import_toB = __toESM(require("./components/pay/toB"));
|
|
144
140
|
var import_eftpos = __toESM(require("./components/eftpos"));
|
|
145
|
-
var import_wallet = __toESM(require("./components/wallet"));
|
|
146
141
|
var import_walletList = __toESM(require("./components/walletList"));
|
|
147
142
|
var import_dashboard = __toESM(require("./components/booking/dashboard"));
|
|
148
143
|
var import_pisellSelectCustomerModal = __toESM(require("./components/pisellSelectCustomerModal"));
|
|
@@ -188,10 +183,7 @@ var import_contactInfoModal = __toESM(require("./plus/contactInfoModal"));
|
|
|
188
183
|
var import_Login2 = require("./pro/Login2.0");
|
|
189
184
|
var import_walletEditor = __toESM(require("./plus/walletEditor"));
|
|
190
185
|
var import_walletPassGallery = __toESM(require("./plus/walletPassGallery"));
|
|
191
|
-
var import_passDetail = __toESM(require("./plus/walletPassGallery/components/passDetail"));
|
|
192
|
-
var import_registry = __toESM(require("./components/systemSettings/registry"));
|
|
193
186
|
var import_webPosLogin = __toESM(require("./plus/webPosLogin"));
|
|
194
|
-
var import_plugin = __toESM(require("./components/checkout/plugin"));
|
|
195
187
|
import_dayjs.default.extend(import_weekday.default);
|
|
196
188
|
import_dayjs.default.extend(import_localeData.default);
|
|
197
189
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -241,7 +233,6 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
241
233
|
OnlineShopAuth,
|
|
242
234
|
OrgAdminAuth,
|
|
243
235
|
POSOperatorAuth,
|
|
244
|
-
PaymentModal,
|
|
245
236
|
PinModal,
|
|
246
237
|
PinVerifyModal,
|
|
247
238
|
PisellSelectCustomerModal,
|
|
@@ -260,7 +251,6 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
260
251
|
SaasLogin,
|
|
261
252
|
SaasRegister,
|
|
262
253
|
Schedules,
|
|
263
|
-
SettingsRegistry,
|
|
264
254
|
ShoppingCart,
|
|
265
255
|
SkuCard,
|
|
266
256
|
SkuList,
|
|
@@ -272,10 +262,8 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
272
262
|
ToCPay,
|
|
273
263
|
VerticalAddService,
|
|
274
264
|
VerticalClient,
|
|
275
|
-
Wallet,
|
|
276
265
|
WalletEditor,
|
|
277
266
|
WalletList,
|
|
278
|
-
WalletPassDetail,
|
|
279
267
|
WalletPassGallery,
|
|
280
268
|
WebPosLogin,
|
|
281
269
|
WorkspaceList,
|
|
@@ -24,9 +24,9 @@ __export(locales_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(locales_exports);
|
|
25
25
|
var locales_default = {
|
|
26
26
|
en: {
|
|
27
|
-
"pisell2.text.add-client": "Add
|
|
28
|
-
"pisell2.text.change-client": "Change
|
|
29
|
-
"pisell2.text.remove-client": " Remove
|
|
27
|
+
"pisell2.text.add-client": "Add client",
|
|
28
|
+
"pisell2.text.change-client": "Change Client",
|
|
29
|
+
"pisell2.text.remove-client": " Remove Client"
|
|
30
30
|
},
|
|
31
31
|
"zh-CN": {
|
|
32
32
|
"pisell2.text.add-client": "添加客户",
|