@pisell/private-materials 6.9.6 → 6.10.2
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/README.md +1 -5
- 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 +164 -150
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/Sales/Cart/index.js +3 -20
- package/es/components/Sales/Cart/utils.d.ts +0 -5
- package/es/components/Sales/Cart/utils.js +0 -16
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/Sales/Summary/utils.js +4 -5
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.js +12 -12
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +5 -46
- package/es/components/appointmentBooking/components/Voucher/index.js +5 -26
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/hooks.d.ts +1 -1
- package/es/components/appointmentBooking/hooks.js +13 -6
- package/es/components/appointmentBooking/locales.d.ts +0 -3
- package/es/components/appointmentBooking/locales.js +0 -3
- package/es/components/appointmentBooking/utils.d.ts +0 -23
- package/es/components/appointmentBooking/utils.js +0 -159
- package/es/components/booking/addons/index.js +2 -3
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/actionButtons/index.js +0 -10
- package/es/components/booking/components/customiseItemModal/index.js +7 -4
- package/es/components/booking/components/footer/amount.d.ts +0 -1
- package/es/components/booking/components/footer/amount.js +165 -358
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +170 -497
- package/es/components/booking/components/footer/utils.d.ts +1 -1
- package/es/components/booking/components/footer/utils.js +83 -144
- package/es/components/booking/components/voucher/index.js +6 -15
- package/es/components/booking/components/voucher/index.less +1 -4
- package/es/components/booking/components/voucherModal/index.less +0 -1
- package/es/components/booking/dashboard/index.js +92 -78
- package/es/components/booking/dashboard/serve.d.ts +0 -1
- package/es/components/booking/dashboard/serve.js +0 -22
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/hooks/useQuotation.js +10 -32
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/client/index.js +6 -16
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Group/utils.js +2 -2
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.js +41 -45
- package/es/components/booking/info2/cartClientCard/index.js +10 -16
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editNormalService/index.js +17 -22
- package/es/components/booking/info2/service/editService/index.js +2 -33
- package/es/components/booking/info2/service/editService/utils.js +5 -9
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/locales.d.ts +0 -3
- package/es/components/booking/locales.js +3 -6
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/booking/utils.js +4 -4
- package/es/components/checkout/PaymentModal.d.ts +0 -1
- package/es/components/checkout/PaymentModal.js +64 -175
- package/es/components/checkout/components/PaymentDetailModal/index.less +429 -426
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -3
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +1 -0
- package/es/components/checkout/components/PaymentResultToast/index.js +0 -2
- package/es/components/checkout/components/WalletPassModule/index.js +0 -1
- package/es/components/checkout/components/WalletPassModule/utils.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/utils.js +3 -17
- package/es/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/es/components/checkout/hooks/useWalletPass.js +198 -324
- package/es/components/checkout/index.less +0 -6
- package/es/components/checkout/plugin.js +12 -59
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/EFTPos.js +6 -15
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.js +0 -5
- package/es/components/eftposPay/component/fail/failCustom.js +12 -16
- package/es/components/eftposPay/component/fail/index.js +5 -12
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/const.d.ts +1 -6
- package/es/components/eftposPay/const.js +0 -3
- package/es/components/eftposPay/hooks.d.ts +2 -3
- package/es/components/eftposPay/hooks.js +0 -12
- package/es/components/eftposPay/index.js +1 -5
- package/es/components/eftposPay/locales.d.ts +0 -36
- package/es/components/eftposPay/locales.js +3 -42
- package/es/components/eftposPay/manufacturer.d.ts +0 -1
- package/es/components/eftposPay/manufacturer.js +0 -5
- package/es/components/eftposPay/pay.js +2 -6
- package/es/components/eftposPay/store/index.d.ts +5 -12
- package/es/components/eftposPay/tyro/index.js +4 -97
- package/es/components/eftposPay/windcave/windcave.js +9 -9
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +1 -2
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/kioskSkuDetail/index.d.ts +0 -3
- package/es/components/kioskSkuDetail/index.js +173 -268
- package/es/components/kioskSkuDetail/index.less +7 -49
- package/es/components/kioskSkuDetail/locales.d.ts +0 -6
- package/es/components/kioskSkuDetail/locales.js +3 -9
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/es/components/pay/toB/components/EFTPOS/index.js +1 -8
- package/es/components/pay/toB/components/MX51/index.js +1 -2
- package/es/components/pay/toB/paymentMethods/index.js +1 -2
- package/es/components/pay/toB/types/index.d.ts +0 -9
- package/es/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/index.js +5 -54
- package/es/components/pay/toC/PaymentList/index.less +1 -58
- package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +0 -22
- package/es/components/pay/toC/PaymentList/utils.d.ts +0 -26
- package/es/components/pay/toC/PaymentList/utils.js +6 -188
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +3 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +42 -139
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +145 -166
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/index.js +1 -3
- package/es/components/pay/toC/index.js +28 -68
- package/es/components/pay/toC/locales.d.ts +0 -6
- package/es/components/pay/toC/locales.js +3 -9
- package/es/components/pay/toC/model.d.ts +1 -10
- package/es/components/pay/toC/serve.d.ts +0 -18
- package/es/components/pay/toC/serve.js +1 -29
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +0 -4
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.js +1 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/systemSettings/registry/components/SectionList.js +1 -5
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +8 -5
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +63 -142
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +1 -2
- package/es/components/ticketBooking/components/ticketBooking/index.js +5 -19
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -3
- package/es/components/ticketBooking/context/OsKeyContext.js +2 -12
- package/es/components/ticketBooking/context/index.d.ts +1 -1
- package/es/components/ticketBooking/context/index.js +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +11 -14
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +10 -69
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/index.js +1 -2
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/walletList/index.js +2 -7
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/index.d.ts +4 -7
- package/es/index.js +4 -7
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/clinetSearch/index.d.ts +0 -1
- package/es/plus/clinetSearch/index.js +5 -27
- package/es/plus/clinetSearch/locales.d.ts +0 -3
- package/es/plus/clinetSearch/locales.js +3 -6
- package/es/plus/clinetSearch/types.d.ts +0 -9
- package/es/plus/myTeamLogin/MyTeamLoginCpt.d.ts +9 -0
- package/es/plus/myTeamLogin/MyTeamLoginCpt.js +205 -0
- package/es/plus/myTeamLogin/index.d.ts +11 -0
- package/es/{components/ecocup/cupList/hooks/useCupApi.js → plus/myTeamLogin/index.js} +259 -129
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/index.js +3 -12
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +4 -6
- package/es/plus/productSelect/ProductList/gridComponents.js +10 -30
- package/es/plus/productSelect/index.d.ts +1 -3
- package/es/plus/productSelect/index.js +14 -85
- package/es/plus/saasCreateOrganization/index.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
- package/es/plus/skuOptionsSelection/locales.d.ts +0 -3
- package/es/plus/skuOptionsSelection/locales.js +0 -3
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +2 -11
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +0 -10
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +0 -1
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +0 -2
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +0 -10
- package/es/plus/walletPassGallery/components/passDetail/index.js +5 -6
- package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -2
- package/es/plus/walletPassGallery/components/timelineSection/index.js +3 -9
- package/es/plus/walletPassGallery/index.js +2 -2
- package/es/plus/walletPassGallery/index.less +1 -1
- package/es/plus/walletPassGallery/serve.d.ts +0 -8
- package/es/plus/walletPassGallery/serve.js +50 -78
- package/es/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/es/plus/webPosLogin/WebPosLogin.js +2 -7
- package/es/plus/webPosLogin/components/LoginPanel/index.js +3 -0
- package/es/plus/webPosLogin/components/MediaDisplay/index.js +5 -5
- package/es/plus/webPosLogin/components/MediaDisplay/index.less +6 -10
- package/es/plus/webPosLogin/service.js +1 -2
- package/es/pro/Login2.0/AuthModal.js +4 -12
- package/es/pro/Login2.0/Login2.js +10 -16
- package/es/pro/Login2.0/components/LoginCodeInput.js +3 -36
- package/es/pro/Login2.0/index.less +3 -15
- package/es/pro/Login2.0/shared/types.d.ts +4 -0
- package/es/pro/Login2.0/steps/CodeInput.js +7 -37
- package/es/pro/NumericStepper/index.d.ts +1 -27
- package/es/pro/NumericStepper/index.js +68 -84
- package/es/pro/NumericStepper/index.less +136 -261
- package/es/pro/Selector/Selector.js +10 -17
- package/es/pro/Selector/demo.d.ts +1 -0
- package/es/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/es/pro/Selector/hooks/usePresetProps.js +2 -4
- package/es/pro/Selector/types.d.ts +0 -1
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellNumberSelector/example.js +68 -0
- package/es/pro/pisellPaymentList/example.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +1 -2
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +1 -2
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +3 -6
- package/es/pro/skuDetailModal/index.js +55 -61
- package/es/pro/skuDetailModal/index.less +4 -46
- package/es/pro/skuDetailModal/types.d.ts +0 -7
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/Sales/Cart/index.js +7 -25
- package/lib/components/Sales/Cart/utils.d.ts +0 -5
- package/lib/components/Sales/Cart/utils.js +1 -13
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/Sales/Summary/utils.js +4 -2
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.js +8 -3
- package/lib/components/appointmentBooking/components/Services/index.js +1 -5
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -27
- package/lib/components/appointmentBooking/components/Voucher/index.js +6 -37
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/hooks.d.ts +1 -1
- package/lib/components/appointmentBooking/hooks.js +11 -6
- package/lib/components/appointmentBooking/locales.d.ts +0 -3
- package/lib/components/appointmentBooking/locales.js +0 -3
- package/lib/components/appointmentBooking/utils.d.ts +0 -23
- package/lib/components/appointmentBooking/utils.js +0 -103
- package/lib/components/booking/addons/index.js +2 -3
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/actionButtons/index.js +0 -10
- package/lib/components/booking/components/customiseItemModal/index.js +5 -4
- package/lib/components/booking/components/footer/amount.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.js +25 -122
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +5 -244
- package/lib/components/booking/components/footer/utils.d.ts +1 -1
- package/lib/components/booking/components/footer/utils.js +22 -59
- package/lib/components/booking/components/voucher/index.js +4 -18
- package/lib/components/booking/components/voucher/index.less +1 -4
- package/lib/components/booking/components/voucherModal/index.less +0 -1
- package/lib/components/booking/dashboard/index.js +59 -38
- package/lib/components/booking/dashboard/serve.d.ts +0 -1
- package/lib/components/booking/dashboard/serve.js +2 -8
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/hooks/useQuotation.js +21 -65
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/client/index.js +8 -16
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Group/utils.js +2 -2
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +2 -6
- package/lib/components/booking/info2/cartClientCard/index.js +11 -17
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editNormalService/index.js +16 -20
- package/lib/components/booking/info2/service/editService/index.js +24 -48
- package/lib/components/booking/info2/service/editService/utils.js +4 -7
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/locales.d.ts +0 -3
- package/lib/components/booking/locales.js +3 -6
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/booking/utils.js +3 -3
- package/lib/components/checkout/PaymentModal.d.ts +0 -1
- package/lib/components/checkout/PaymentModal.js +30 -98
- package/lib/components/checkout/components/PaymentDetailModal/index.less +429 -426
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +2 -6
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +1 -0
- package/lib/components/checkout/components/PaymentResultToast/index.js +0 -2
- package/lib/components/checkout/components/WalletPassModule/index.js +0 -1
- package/lib/components/checkout/components/WalletPassModule/utils.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/utils.js +2 -18
- package/lib/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/lib/components/checkout/hooks/useWalletPass.js +109 -160
- package/lib/components/checkout/index.less +0 -6
- package/lib/components/checkout/plugin.js +150 -195
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/EFTPos.js +7 -11
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.js +0 -5
- package/lib/components/eftposPay/component/fail/failCustom.js +9 -15
- package/lib/components/eftposPay/component/fail/index.js +1 -4
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/const.d.ts +1 -6
- package/lib/components/eftposPay/const.js +0 -3
- package/lib/components/eftposPay/hooks.d.ts +2 -3
- package/lib/components/eftposPay/hooks.js +0 -16
- package/lib/components/eftposPay/index.js +1 -5
- package/lib/components/eftposPay/locales.d.ts +0 -36
- package/lib/components/eftposPay/locales.js +3 -42
- package/lib/components/eftposPay/manufacturer.d.ts +0 -1
- package/lib/components/eftposPay/manufacturer.js +0 -7
- package/lib/components/eftposPay/pay.js +2 -3
- package/lib/components/eftposPay/store/index.d.ts +5 -12
- package/lib/components/eftposPay/tyro/index.js +7 -64
- package/lib/components/eftposPay/windcave/windcave.js +9 -9
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +1 -2
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/kioskSkuDetail/index.d.ts +0 -3
- package/lib/components/kioskSkuDetail/index.js +113 -180
- package/lib/components/kioskSkuDetail/index.less +7 -49
- package/lib/components/kioskSkuDetail/locales.d.ts +0 -6
- package/lib/components/kioskSkuDetail/locales.js +3 -9
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/lib/components/pay/toB/components/EFTPOS/index.js +1 -8
- package/lib/components/pay/toB/components/MX51/index.js +1 -2
- package/lib/components/pay/toB/paymentMethods/index.js +1 -2
- package/lib/components/pay/toB/types/index.d.ts +0 -9
- package/lib/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/index.js +5 -36
- package/lib/components/pay/toC/PaymentList/index.less +1 -58
- package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +1 -21
- package/lib/components/pay/toC/PaymentList/utils.d.ts +0 -26
- package/lib/components/pay/toC/PaymentList/utils.js +7 -156
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -97
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +103 -90
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/index.js +1 -3
- package/lib/components/pay/toC/index.js +11 -53
- package/lib/components/pay/toC/locales.d.ts +0 -6
- package/lib/components/pay/toC/locales.js +3 -9
- package/lib/components/pay/toC/model.d.ts +1 -10
- package/lib/components/pay/toC/serve.d.ts +0 -18
- package/lib/components/pay/toC/serve.js +0 -6
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +0 -4
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.js +1 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/systemSettings/registry/components/SectionList.js +1 -4
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +7 -3
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +16 -46
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +2 -3
- package/lib/components/ticketBooking/components/ticketBooking/index.js +7 -21
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -3
- package/lib/components/ticketBooking/context/OsKeyContext.js +3 -13
- package/lib/components/ticketBooking/context/index.d.ts +1 -1
- package/lib/components/ticketBooking/context/index.js +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +2 -3
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +0 -59
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.js +1 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/walletList/index.js +1 -5
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/index.d.ts +4 -7
- package/lib/index.js +6 -15
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/index.d.ts +0 -1
- package/lib/plus/clinetSearch/index.js +7 -31
- package/lib/plus/clinetSearch/locales.d.ts +0 -3
- package/lib/plus/clinetSearch/locales.js +3 -6
- package/lib/plus/clinetSearch/types.d.ts +0 -9
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.d.ts +9 -0
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.js +188 -0
- package/lib/plus/myTeamLogin/index.d.ts +11 -0
- package/lib/plus/myTeamLogin/index.js +198 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/index.js +3 -3
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +4 -6
- package/lib/plus/productSelect/ProductList/gridComponents.js +1 -7
- package/lib/plus/productSelect/index.d.ts +1 -3
- package/lib/plus/productSelect/index.js +11 -56
- package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +0 -2
- package/lib/plus/skuOptionsSelection/locales.d.ts +0 -3
- package/lib/plus/skuOptionsSelection/locales.js +0 -3
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +0 -10
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +0 -10
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +0 -1
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +0 -2
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +0 -10
- package/lib/plus/walletPassGallery/components/passDetail/index.js +6 -24
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -2
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +10 -17
- package/lib/plus/walletPassGallery/index.js +2 -2
- package/lib/plus/walletPassGallery/index.less +1 -1
- package/lib/plus/walletPassGallery/serve.d.ts +0 -8
- package/lib/plus/walletPassGallery/serve.js +8 -23
- package/lib/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/lib/plus/webPosLogin/WebPosLogin.js +2 -7
- package/lib/plus/webPosLogin/components/LoginPanel/index.js +3 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/index.js +1 -1
- package/lib/plus/webPosLogin/components/MediaDisplay/index.less +6 -10
- package/lib/plus/webPosLogin/service.js +1 -2
- package/lib/pro/Login2.0/AuthModal.js +7 -15
- package/lib/pro/Login2.0/Login2.js +15 -21
- package/lib/pro/Login2.0/components/LoginCodeInput.js +4 -26
- package/lib/pro/Login2.0/index.less +3 -15
- package/lib/pro/Login2.0/shared/types.d.ts +4 -0
- package/lib/pro/Login2.0/steps/CodeInput.js +5 -27
- package/lib/pro/NumericStepper/index.d.ts +1 -27
- package/lib/pro/NumericStepper/index.js +70 -73
- package/lib/pro/NumericStepper/index.less +136 -261
- package/lib/pro/Selector/Selector.js +4 -11
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/lib/pro/Selector/hooks/usePresetProps.js +2 -4
- package/lib/pro/Selector/types.d.ts +0 -1
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellNumberSelector/example.js +93 -0
- package/lib/pro/pisellPaymentList/example.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +1 -2
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +1 -2
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +3 -6
- package/lib/pro/skuDetailModal/index.js +64 -117
- package/lib/pro/skuDetailModal/index.less +4 -46
- package/lib/pro/skuDetailModal/types.d.ts +0 -7
- package/lowcode/kiosk-sku-detail/meta.ts +94 -229
- package/lowcode/login2/meta.ts +20 -15
- package/lowcode/my-team-login/meta.ts +71 -0
- package/package.json +23 -8
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -3
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +0 -82
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
- package/es/components/ecocup/components/AddCustomerModal/index.js +0 -216
- package/es/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/es/components/ecocup/components/CupActionList/index.d.ts +0 -13
- package/es/components/ecocup/components/CupActionList/index.js +0 -91
- package/es/components/ecocup/components/CupActionList/index.less +0 -102
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupActionModal/hooks.js +0 -68
- package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -14
- package/es/components/ecocup/components/CupActionModal/index.js +0 -92
- package/es/components/ecocup/components/CupActionModal/index.less +0 -38
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -7
- package/es/components/ecocup/components/CupInfoCard/index.js +0 -12
- package/es/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupStatusModal/hooks.js +0 -68
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
- package/es/components/ecocup/components/CupStatusModal/index.js +0 -147
- package/es/components/ecocup/components/CupStatusModal/index.less +0 -35
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -133
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +0 -227
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -6
- package/es/components/ecocup/components/CustomerCard/index.js +0 -34
- package/es/components/ecocup/components/CustomerCard/index.less +0 -50
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -8
- package/es/components/ecocup/components/MoreDropdown/index.js +0 -33
- package/es/components/ecocup/components/PageHeader/index.d.ts +0 -6
- package/es/components/ecocup/components/PageHeader/index.js +0 -37
- package/es/components/ecocup/components/PageHeader/index.less +0 -19
- package/es/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/es/components/ecocup/components/SearchBar/const.js +0 -16
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/es/components/ecocup/components/SearchBar/hooks.js +0 -184
- package/es/components/ecocup/components/SearchBar/index.d.ts +0 -12
- package/es/components/ecocup/components/SearchBar/index.js +0 -218
- package/es/components/ecocup/components/SearchBar/index.less +0 -88
- package/es/components/ecocup/cupList/const.d.ts +0 -133
- package/es/components/ecocup/cupList/const.js +0 -306
- package/es/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/es/components/ecocup/cupList/hooks/index.js +0 -4
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
- package/es/components/ecocup/cupList/hooks/useColumns.js +0 -168
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -2
- package/es/components/ecocup/cupList/hooks/useSummary.js +0 -40
- package/es/components/ecocup/cupList/index.d.ts +0 -6
- package/es/components/ecocup/cupList/index.js +0 -220
- package/es/components/ecocup/cupList/index.less +0 -113
- package/es/components/ecocup/cupProject/const.d.ts +0 -7
- package/es/components/ecocup/cupProject/const.js +0 -27
- package/es/components/ecocup/cupProject/index.d.ts +0 -3
- package/es/components/ecocup/cupProject/index.js +0 -103
- package/es/components/ecocup/cupProject/index.less +0 -41
- package/es/components/ecocup/customerList/const.d.ts +0 -44
- package/es/components/ecocup/customerList/const.js +0 -67
- package/es/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/es/components/ecocup/customerList/hooks/index.js +0 -3
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useColumns.js +0 -44
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +0 -70
- package/es/components/ecocup/customerList/index.d.ts +0 -7
- package/es/components/ecocup/customerList/index.js +0 -127
- package/es/components/ecocup/customerList/index.less +0 -15
- package/es/components/ecocup/hooks.d.ts +0 -49
- package/es/components/ecocup/hooks.js +0 -151
- package/es/components/ecocup/locales.d.ts +0 -339
- package/es/components/ecocup/locales.js +0 -372
- package/es/components/ecocup/types.d.ts +0 -103
- package/es/components/ecocup/types.js +0 -36
- package/es/components/ecocup/utils/scanListener.d.ts +0 -20
- package/es/components/ecocup/utils/scanListener.js +0 -107
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +0 -7
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +0 -120
- package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/es/components/eftposPay/aggregatePayment/index.js +0 -3
- package/es/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/es/components/eftposPay/aggregatePayment/service.js +0 -69
- package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/es/components/eftposPay/aggregatePayment/types.js +0 -65
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +0 -371
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +0 -1138
- package/es/components/eftposPay/huifu/Action.d.ts +0 -8
- package/es/components/eftposPay/huifu/Action.js +0 -146
- package/es/components/eftposPay/huifu/const.d.ts +0 -5
- package/es/components/eftposPay/huifu/const.js +0 -70
- package/es/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/es/components/eftposPay/huifu/hooks.js +0 -184
- package/es/components/eftposPay/huifu/index.d.ts +0 -5
- package/es/components/eftposPay/huifu/index.js +0 -196
- package/es/components/eftposPay/huifu/index.less +0 -180
- package/es/components/eftposPay/huifu/types.d.ts +0 -14
- package/es/components/eftposPay/huifu/types.js +0 -1
- package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +0 -20
- package/es/components/eventBooking/components/Voucher/components/Voucher.js +0 -99
- package/es/components/eventBooking/components/Voucher/components/index.less +0 -124
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
- package/es/components/eventBooking/components/Voucher/components/locales.js +0 -38
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +0 -7
- package/es/components/eventBooking/components/Voucher/hooks.js +0 -212
- package/es/components/eventBooking/components/Voucher/index.d.ts +0 -2
- package/es/components/eventBooking/components/Voucher/index.js +0 -266
- package/es/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/es/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/es/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/es/plus/orderList/components/BatchActionBar.js +0 -835
- package/es/plus/orderList/components/FilterList.d.ts +0 -8
- package/es/plus/orderList/components/FilterList.js +0 -78
- package/es/plus/orderList/components/HandleActions.d.ts +0 -5
- package/es/plus/orderList/components/HandleActions.js +0 -27
- package/es/plus/orderList/components/QuickFilter.d.ts +0 -4
- package/es/plus/orderList/components/QuickFilter.js +0 -14
- package/es/plus/orderList/components/Reset.d.ts +0 -6
- package/es/plus/orderList/components/Reset.js +0 -23
- package/es/plus/orderList/components/Toolbar.d.ts +0 -6
- package/es/plus/orderList/components/Toolbar.js +0 -59
- package/es/plus/orderList/config.d.ts +0 -154
- package/es/plus/orderList/config.js +0 -786
- package/es/plus/orderList/index.d.ts +0 -10
- package/es/plus/orderList/index.js +0 -133
- package/es/plus/orderList/index.less +0 -125
- package/es/plus/orderList/locales.d.ts +0 -372
- package/es/plus/orderList/locales.js +0 -459
- package/es/plus/orderList/serve.d.ts +0 -42
- package/es/plus/orderList/serve.js +0 -351
- package/es/pro/keyboards/index.d.ts +0 -2
- package/es/pro/keyboards/index.js +0 -1
- package/es/pro/keyboards/locales.d.ts +0 -24
- package/es/pro/keyboards/locales.js +0 -35
- package/es/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/es/pro/keyboards/numberKeyboard/index.js +0 -523
- package/es/pro/keyboards/numberKeyboard/index.less +0 -59
- package/es/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/es/pro/keyboards/numberKeyboard/types.js +0 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +0 -3
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +0 -89
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
- package/lib/components/ecocup/components/AddCustomerModal/index.js +0 -212
- package/lib/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -13
- package/lib/components/ecocup/components/CupActionList/index.js +0 -116
- package/lib/components/ecocup/components/CupActionList/index.less +0 -102
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupActionModal/hooks.js +0 -55
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -14
- package/lib/components/ecocup/components/CupActionModal/index.js +0 -125
- package/lib/components/ecocup/components/CupActionModal/index.less +0 -38
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -7
- package/lib/components/ecocup/components/CupInfoCard/index.js +0 -43
- package/lib/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +0 -55
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
- package/lib/components/ecocup/components/CupStatusModal/index.js +0 -140
- package/lib/components/ecocup/components/CupStatusModal/index.less +0 -35
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -89
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +0 -178
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -6
- package/lib/components/ecocup/components/CustomerCard/index.js +0 -48
- package/lib/components/ecocup/components/CustomerCard/index.less +0 -50
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -8
- package/lib/components/ecocup/components/MoreDropdown/index.js +0 -68
- package/lib/components/ecocup/components/PageHeader/index.d.ts +0 -6
- package/lib/components/ecocup/components/PageHeader/index.js +0 -59
- package/lib/components/ecocup/components/PageHeader/index.less +0 -19
- package/lib/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/lib/components/ecocup/components/SearchBar/const.js +0 -50
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/lib/components/ecocup/components/SearchBar/hooks.js +0 -135
- package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -12
- package/lib/components/ecocup/components/SearchBar/index.js +0 -213
- package/lib/components/ecocup/components/SearchBar/index.less +0 -88
- package/lib/components/ecocup/cupList/const.d.ts +0 -133
- package/lib/components/ecocup/cupList/const.js +0 -326
- package/lib/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/lib/components/ecocup/cupList/hooks/index.js +0 -39
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
- package/lib/components/ecocup/cupList/hooks/useColumns.js +0 -202
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +0 -112
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -2
- package/lib/components/ecocup/cupList/hooks/useSummary.js +0 -75
- package/lib/components/ecocup/cupList/index.d.ts +0 -6
- package/lib/components/ecocup/cupList/index.js +0 -208
- package/lib/components/ecocup/cupList/index.less +0 -113
- package/lib/components/ecocup/cupProject/const.d.ts +0 -7
- package/lib/components/ecocup/cupProject/const.js +0 -58
- package/lib/components/ecocup/cupProject/index.d.ts +0 -3
- package/lib/components/ecocup/cupProject/index.js +0 -126
- package/lib/components/ecocup/cupProject/index.less +0 -41
- package/lib/components/ecocup/customerList/const.d.ts +0 -44
- package/lib/components/ecocup/customerList/const.js +0 -93
- package/lib/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/lib/components/ecocup/customerList/hooks/index.js +0 -32
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useColumns.js +0 -89
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +0 -56
- package/lib/components/ecocup/customerList/index.d.ts +0 -7
- package/lib/components/ecocup/customerList/index.js +0 -138
- package/lib/components/ecocup/customerList/index.less +0 -15
- package/lib/components/ecocup/hooks.d.ts +0 -49
- package/lib/components/ecocup/hooks.js +0 -155
- package/lib/components/ecocup/locales.d.ts +0 -339
- package/lib/components/ecocup/locales.js +0 -389
- package/lib/components/ecocup/types.d.ts +0 -103
- package/lib/components/ecocup/types.js +0 -57
- package/lib/components/ecocup/utils/scanListener.d.ts +0 -20
- package/lib/components/ecocup/utils/scanListener.js +0 -90
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +0 -7
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +0 -133
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/lib/components/eftposPay/aggregatePayment/index.js +0 -42
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/lib/components/eftposPay/aggregatePayment/service.js +0 -81
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/lib/components/eftposPay/aggregatePayment/types.js +0 -74
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +0 -294
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +0 -752
- package/lib/components/eftposPay/huifu/Action.d.ts +0 -8
- package/lib/components/eftposPay/huifu/Action.js +0 -174
- package/lib/components/eftposPay/huifu/const.d.ts +0 -5
- package/lib/components/eftposPay/huifu/const.js +0 -86
- package/lib/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/lib/components/eftposPay/huifu/hooks.js +0 -186
- package/lib/components/eftposPay/huifu/index.d.ts +0 -5
- package/lib/components/eftposPay/huifu/index.js +0 -200
- package/lib/components/eftposPay/huifu/index.less +0 -180
- package/lib/components/eftposPay/huifu/types.d.ts +0 -14
- package/lib/components/eftposPay/huifu/types.js +0 -17
- package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +0 -20
- package/lib/components/eventBooking/components/Voucher/components/Voucher.js +0 -116
- package/lib/components/eventBooking/components/Voucher/components/index.less +0 -124
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +0 -39
- package/lib/components/eventBooking/components/Voucher/components/locales.js +0 -59
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +0 -7
- package/lib/components/eventBooking/components/Voucher/hooks.js +0 -176
- package/lib/components/eventBooking/components/Voucher/index.d.ts +0 -2
- package/lib/components/eventBooking/components/Voucher/index.js +0 -197
- package/lib/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/lib/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/lib/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/lib/plus/orderList/components/BatchActionBar.js +0 -567
- package/lib/plus/orderList/components/FilterList.d.ts +0 -8
- package/lib/plus/orderList/components/FilterList.js +0 -121
- package/lib/plus/orderList/components/HandleActions.d.ts +0 -5
- package/lib/plus/orderList/components/HandleActions.js +0 -52
- package/lib/plus/orderList/components/QuickFilter.d.ts +0 -4
- package/lib/plus/orderList/components/QuickFilter.js +0 -43
- package/lib/plus/orderList/components/Reset.d.ts +0 -6
- package/lib/plus/orderList/components/Reset.js +0 -58
- package/lib/plus/orderList/components/Toolbar.d.ts +0 -6
- package/lib/plus/orderList/components/Toolbar.js +0 -68
- package/lib/plus/orderList/config.d.ts +0 -154
- package/lib/plus/orderList/config.js +0 -766
- package/lib/plus/orderList/index.d.ts +0 -10
- package/lib/plus/orderList/index.js +0 -132
- package/lib/plus/orderList/index.less +0 -125
- package/lib/plus/orderList/locales.d.ts +0 -372
- package/lib/plus/orderList/locales.js +0 -471
- package/lib/plus/orderList/serve.d.ts +0 -42
- package/lib/plus/orderList/serve.js +0 -177
- package/lib/pro/keyboards/index.d.ts +0 -2
- package/lib/pro/keyboards/index.js +0 -39
- package/lib/pro/keyboards/locales.d.ts +0 -24
- package/lib/pro/keyboards/locales.js +0 -47
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/lib/pro/keyboards/numberKeyboard/index.js +0 -400
- package/lib/pro/keyboards/numberKeyboard/index.less +0 -59
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/lib/pro/keyboards/numberKeyboard/types.js +0 -17
- package/lowcode/eco-cup-list/meta.ts +0 -63
- package/lowcode/eco-customer-list/meta.ts +0 -63
- package/lowcode/ecocup-cup-list/meta.ts +0 -38
- package/lowcode/ecocup-cup-project/meta.ts +0 -35
- package/lowcode/ecocup-customer-list/meta.ts +0 -38
- package/lowcode/order-list/meta.ts +0 -87
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
.payment-modal-modal {
|
|
2
|
-
width: 880px!important;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
.payment-modal-wrapper {
|
|
6
2
|
.pisell-lowcode-modal-close {
|
|
7
3
|
display: none;
|
|
@@ -46,12 +42,10 @@
|
|
|
46
42
|
overflow: hidden;
|
|
47
43
|
display: flex;
|
|
48
44
|
flex-direction: column;
|
|
49
|
-
width: 100%!important;
|
|
50
45
|
|
|
51
46
|
.pisell-lowcode-modal-body {
|
|
52
47
|
// JavaScript设置: maxHeight: '100%' (基于父元素)
|
|
53
48
|
overflow-y: auto;
|
|
54
|
-
width: 100%!important;
|
|
55
49
|
}
|
|
56
50
|
}
|
|
57
51
|
}
|
|
@@ -29,7 +29,6 @@ import { getSumTotal } from "../booking/components/footer/amount";
|
|
|
29
29
|
import { locales } from '@pisell/utils';
|
|
30
30
|
import { Provider } from "../booking/info/model";
|
|
31
31
|
import { useToast } from '@pisell/materials';
|
|
32
|
-
import useLogger from "../../hooks/useLogger";
|
|
33
32
|
|
|
34
33
|
// 这里的 Provider 来自 miniRedux,是一个高阶组件(HOC),而不是普通的 React 组件。
|
|
35
34
|
// 使用方式应为:const Wrapped = Provider(Component),而不是 <Provider>...</Provider>。
|
|
@@ -57,7 +56,6 @@ var PaymentModalContent = function PaymentModalContent(_ref) {
|
|
|
57
56
|
getData = _context$appHelper$ut.getData,
|
|
58
57
|
pisellos = _context$appHelper$ut.pisellos;
|
|
59
58
|
var Toast = useToast();
|
|
60
|
-
var logger = useLogger();
|
|
61
59
|
var getDataFromHost = function getDataFromHost() {
|
|
62
60
|
try {
|
|
63
61
|
var is_price_include_tax = getData('is_price_include_tax');
|
|
@@ -98,46 +96,24 @@ var PaymentModalContent = function PaymentModalContent(_ref) {
|
|
|
98
96
|
if (!engineProps.order_id) return;
|
|
99
97
|
var getBookingDetail = /*#__PURE__*/function () {
|
|
100
98
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
101
|
-
var _Toast$loading,
|
|
102
|
-
var
|
|
99
|
+
var _Toast$loading, _bookingOrigin$paymen, _Toast$close;
|
|
100
|
+
var bookingOrigin, booking, values, ScheduleModule, total, orderTotalList, subTotalList, checkoutModule, paymentMethodList, onlineStorePaymentCodeList, existPayment, modalData;
|
|
103
101
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
104
102
|
while (1) switch (_context.prev = _context.next) {
|
|
105
103
|
case 0:
|
|
106
104
|
Toast === null || Toast === void 0 || (_Toast$loading = Toast.loading) === null || _Toast$loading === void 0 || _Toast$loading.call(Toast);
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
title: "\u5F00\u59CB\u7F16\u8F91\u8BA2\u5355-\u83B7\u53D6\u8BA2\u5355\u8BE6\u60C5 ".concat(engineProps.order_id)
|
|
110
|
-
});
|
|
111
|
-
_context.prev = 2;
|
|
112
|
-
_context.next = 5;
|
|
105
|
+
// 根据父id 获取预约详情
|
|
106
|
+
_context.next = 3;
|
|
113
107
|
return _getBookingDetail(engineProps.order_id);
|
|
114
|
-
case
|
|
108
|
+
case 3:
|
|
115
109
|
bookingOrigin = _context.sent;
|
|
116
|
-
logger === null || logger === void 0 || (_logger$addLog2 = logger.addLog) === null || _logger$addLog2 === void 0 || _logger$addLog2.call(logger, {
|
|
117
|
-
metadata: {
|
|
118
|
-
bookingOrigin: bookingOrigin
|
|
119
|
-
},
|
|
120
|
-
title: "\u5F00\u59CB\u7F16\u8F91\u8BA2\u5355-\u683C\u5F0F\u5316\u8BA2\u5355\u8BE6\u60C5 ".concat(engineProps.order_id)
|
|
121
|
-
});
|
|
122
110
|
booking = _formatBookingDetail(bookingOrigin, {});
|
|
123
|
-
logger === null || logger === void 0 || (_logger$addLog3 = logger.addLog) === null || _logger$addLog3 === void 0 || _logger$addLog3.call(logger, {
|
|
124
|
-
metadata: {},
|
|
125
|
-
title: "\u5F00\u59CB\u7F16\u8F91\u8BA2\u5355-formatValues ".concat(engineProps.order_id)
|
|
126
|
-
});
|
|
127
111
|
values = formatValues(booking);
|
|
128
|
-
ScheduleModule = context.appHelper.utils.pisellos.getModule('schedule')
|
|
129
|
-
logger === null || logger === void 0 || (_logger$addLog4 = logger.addLog) === null || _logger$addLog4 === void 0 || _logger$addLog4.call(logger, {
|
|
130
|
-
metadata: {},
|
|
131
|
-
title: "\u5F00\u59CB\u7F16\u8F91\u8BA2\u5355-getSumTotal ".concat(engineProps.order_id)
|
|
132
|
-
});
|
|
112
|
+
ScheduleModule = context.appHelper.utils.pisellos.getModule('schedule');
|
|
133
113
|
total = getSumTotal(booking, _objectSpread({
|
|
134
114
|
isEdit: true,
|
|
135
115
|
ScheduleModule: ScheduleModule
|
|
136
116
|
}, getDataFromHost()));
|
|
137
|
-
logger === null || logger === void 0 || (_logger$addLog5 = logger.addLog) === null || _logger$addLog5 === void 0 || _logger$addLog5.call(logger, {
|
|
138
|
-
metadata: {},
|
|
139
|
-
title: "\u5F00\u59CB\u7F16\u8F91\u8BA2\u5355-total ".concat(engineProps.order_id)
|
|
140
|
-
});
|
|
141
117
|
total = _objectSpread(_objectSpread({}, total), {}, {
|
|
142
118
|
expectAmount: bookingOrigin.expect_amount,
|
|
143
119
|
actualPaidAmount: bookingOrigin.paid_amount,
|
|
@@ -222,23 +198,15 @@ var PaymentModalContent = function PaymentModalContent(_ref) {
|
|
|
222
198
|
value: total.roundingAmount,
|
|
223
199
|
label: locales.getText('pisell1.text.rounding')
|
|
224
200
|
}]);
|
|
225
|
-
logger === null || logger === void 0 || (_logger$addLog6 = logger.addLog) === null || _logger$addLog6 === void 0 || _logger$addLog6.call(logger, {
|
|
226
|
-
metadata: {},
|
|
227
|
-
title: "\u5F00\u59CB\u7F16\u8F91\u8BA2\u5355-subTotalList ".concat(engineProps.order_id)
|
|
228
|
-
});
|
|
229
201
|
console.log(values);
|
|
230
|
-
_context.next =
|
|
202
|
+
_context.next = 14;
|
|
231
203
|
return pisellos.getModule('checkout');
|
|
232
|
-
case
|
|
204
|
+
case 14:
|
|
233
205
|
checkoutModule = _context.sent;
|
|
234
|
-
_context.next =
|
|
206
|
+
_context.next = 17;
|
|
235
207
|
return checkoutModule.getPaymentMethodsAsync();
|
|
236
|
-
case
|
|
208
|
+
case 17:
|
|
237
209
|
paymentMethodList = _context.sent;
|
|
238
|
-
logger === null || logger === void 0 || (_logger$addLog7 = logger.addLog) === null || _logger$addLog7 === void 0 || _logger$addLog7.call(logger, {
|
|
239
|
-
metadata: {},
|
|
240
|
-
title: "\u5F00\u59CB\u7F16\u8F91\u8BA2\u5355-getPaymentMethodsAsync ".concat(engineProps.order_id)
|
|
241
|
-
});
|
|
242
210
|
// 补充 values中relation_products、
|
|
243
211
|
onlineStorePaymentCodeList = ['WXPAY', 'WECHAT', 'ALIPAY', 'APPLE_PAY', 'CREDIT_CARD_3DS', 'CREDIT_CARD_TOKEN', 'GOOGLE_PAY', 'GOOGLE_PAY_3DS', 'CREDIT_CARD'];
|
|
244
212
|
existPayment = (_bookingOrigin$paymen = bookingOrigin.payments) === null || _bookingOrigin$paymen === void 0 || (_bookingOrigin$paymen = _bookingOrigin$paymen.filter(function (item) {
|
|
@@ -285,10 +253,6 @@ var PaymentModalContent = function PaymentModalContent(_ref) {
|
|
|
285
253
|
},
|
|
286
254
|
existPayment: existPayment
|
|
287
255
|
};
|
|
288
|
-
logger === null || logger === void 0 || (_logger$addLog8 = logger.addLog) === null || _logger$addLog8 === void 0 || _logger$addLog8.call(logger, {
|
|
289
|
-
metadata: {},
|
|
290
|
-
title: "\u5F00\u59CB\u7F16\u8F91\u8BA2\u5355-dispatch ".concat(engineProps.order_id)
|
|
291
|
-
});
|
|
292
256
|
if (dispatch) {
|
|
293
257
|
dispatch({
|
|
294
258
|
type: 'setState',
|
|
@@ -299,22 +263,11 @@ var PaymentModalContent = function PaymentModalContent(_ref) {
|
|
|
299
263
|
setData(modalData);
|
|
300
264
|
setDataReady(true);
|
|
301
265
|
Toast === null || Toast === void 0 || (_Toast$close = Toast.close) === null || _Toast$close === void 0 || _Toast$close.call(Toast);
|
|
302
|
-
|
|
303
|
-
break;
|
|
304
|
-
case 38:
|
|
305
|
-
_context.prev = 38;
|
|
306
|
-
_context.t0 = _context["catch"](2);
|
|
307
|
-
logger === null || logger === void 0 || (_logger$addLog9 = logger.addLog) === null || _logger$addLog9 === void 0 || _logger$addLog9.call(logger, {
|
|
308
|
-
metadata: {
|
|
309
|
-
error: _context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.message
|
|
310
|
-
},
|
|
311
|
-
title: "\u5F00\u59CB\u7F16\u8F91\u8BA2\u5355-error ".concat(engineProps.order_id)
|
|
312
|
-
});
|
|
313
|
-
case 41:
|
|
266
|
+
case 27:
|
|
314
267
|
case "end":
|
|
315
268
|
return _context.stop();
|
|
316
269
|
}
|
|
317
|
-
}, _callee
|
|
270
|
+
}, _callee);
|
|
318
271
|
}));
|
|
319
272
|
return function getBookingDetail() {
|
|
320
273
|
return _ref2.apply(this, arguments);
|
|
@@ -194,10 +194,8 @@ var EFTPos = function EFTPos(props, ref) {
|
|
|
194
194
|
if (status === 'success' || status === 'fail') {
|
|
195
195
|
isComplete.current = true;
|
|
196
196
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
if (props !== null && props !== void 0 && props.onPayResult) {
|
|
200
|
-
props.onPayResult({
|
|
197
|
+
if (lowcodeRef) {
|
|
198
|
+
lowcodeRef.onChange({
|
|
201
199
|
status: status,
|
|
202
200
|
params: params
|
|
203
201
|
});
|
|
@@ -207,8 +205,10 @@ var EFTPos = function EFTPos(props, ref) {
|
|
|
207
205
|
}
|
|
208
206
|
return;
|
|
209
207
|
}
|
|
210
|
-
|
|
211
|
-
|
|
208
|
+
|
|
209
|
+
// 支付结果回调
|
|
210
|
+
if (props !== null && props !== void 0 && props.onPayResult) {
|
|
211
|
+
props.onPayResult({
|
|
212
212
|
status: status,
|
|
213
213
|
params: params
|
|
214
214
|
});
|
|
@@ -536,15 +536,6 @@ var EFTPos = function EFTPos(props, ref) {
|
|
|
536
536
|
if (isComplete.current) {
|
|
537
537
|
return;
|
|
538
538
|
}
|
|
539
|
-
|
|
540
|
-
// 支付结果回调
|
|
541
|
-
if (props !== null && props !== void 0 && props.onPayResult) {
|
|
542
|
-
props.onPayResult({
|
|
543
|
-
status: 'cache',
|
|
544
|
-
params: params
|
|
545
|
-
});
|
|
546
|
-
return;
|
|
547
|
-
}
|
|
548
539
|
if (lowcodeRef) {
|
|
549
540
|
lowcodeRef.onChange({
|
|
550
541
|
status: 'cache',
|
|
@@ -21,8 +21,6 @@ import { RouteEnum, ClientEnum, RestoreEumn } from "./const";
|
|
|
21
21
|
import Device from "./device";
|
|
22
22
|
import Pay from "./pay";
|
|
23
23
|
import { useContextData, useDispatch, updateState, updateClient } from "./store";
|
|
24
|
-
import useEngineContext from "../../hooks/useEngineContext";
|
|
25
|
-
import { request } from "../../utils";
|
|
26
24
|
var App = function App(_ref) {
|
|
27
25
|
var action = _ref.action,
|
|
28
26
|
api = _ref.api,
|
|
@@ -44,9 +42,6 @@ var App = function App(_ref) {
|
|
|
44
42
|
_useState2 = _slicedToArray(_useState, 2),
|
|
45
43
|
current = _useState2[0],
|
|
46
44
|
setCurrent = _useState2[1];
|
|
47
|
-
var engineContext = useEngineContext();
|
|
48
|
-
var utils = engineContext.appHelper.utils || {};
|
|
49
|
-
request.setRequest(utils === null || utils === void 0 ? void 0 : utils.request);
|
|
50
45
|
var statusRef = useRef(data.status);
|
|
51
46
|
|
|
52
47
|
// 外部网络数据
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function 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; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
1
|
/* eslint-disable no-nested-ternary */
|
|
8
2
|
import { locales } from '@pisell/utils';
|
|
9
3
|
import { useMount } from 'ahooks';
|
|
@@ -29,8 +23,7 @@ export default (function (_ref) {
|
|
|
29
23
|
order_id = _useContextData.order_id,
|
|
30
24
|
number = _useContextData.number,
|
|
31
25
|
device = _useContextData.device,
|
|
32
|
-
client = _useContextData.client
|
|
33
|
-
originalParams = _useContextData.originalParams;
|
|
26
|
+
client = _useContextData.client;
|
|
34
27
|
var failCustom = custom === null || custom === void 0 ? void 0 : custom.failCustom;
|
|
35
28
|
var dispatch = useDispatch();
|
|
36
29
|
|
|
@@ -41,17 +34,20 @@ export default (function (_ref) {
|
|
|
41
34
|
*/
|
|
42
35
|
var onRetry = function onRetry() {
|
|
43
36
|
onChange('page', 'pay');
|
|
44
|
-
|
|
37
|
+
dispatch(updateState(getInitState(eftpos, mode === ModeEnum.Query ? {
|
|
45
38
|
mode: mode,
|
|
46
39
|
name: name,
|
|
47
40
|
symbol: symbol,
|
|
48
41
|
amount: amount,
|
|
49
42
|
order_id: order_id
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
43
|
+
} : {
|
|
44
|
+
mode: mode,
|
|
45
|
+
name: name,
|
|
46
|
+
symbol: symbol,
|
|
47
|
+
amount: amount,
|
|
48
|
+
order_id: order_id,
|
|
49
|
+
number: ''
|
|
50
|
+
})));
|
|
55
51
|
};
|
|
56
52
|
|
|
57
53
|
/**
|
|
@@ -60,14 +56,14 @@ export default (function (_ref) {
|
|
|
60
56
|
* @Date: 2024-08-20 11:30
|
|
61
57
|
*/
|
|
62
58
|
var onModify = function onModify() {
|
|
63
|
-
dispatch(updateState(getInitState(eftpos,
|
|
59
|
+
dispatch(updateState(getInitState(eftpos, {
|
|
64
60
|
mode: mode,
|
|
65
61
|
name: name,
|
|
66
62
|
symbol: symbol,
|
|
67
63
|
amount: amount,
|
|
68
64
|
order_id: order_id,
|
|
69
65
|
number: ''
|
|
70
|
-
})))
|
|
66
|
+
})));
|
|
71
67
|
onChange('page', 'amount');
|
|
72
68
|
};
|
|
73
69
|
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function 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; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
1
|
/* eslint-disable no-nested-ternary */
|
|
8
2
|
import { locales } from '@pisell/utils';
|
|
9
3
|
import { Button } from 'antd';
|
|
@@ -31,8 +25,7 @@ export default (function (_ref) {
|
|
|
31
25
|
order_id = _useContextData.order_id,
|
|
32
26
|
number = _useContextData.number,
|
|
33
27
|
device = _useContextData.device,
|
|
34
|
-
client = _useContextData.client
|
|
35
|
-
originalParams = _useContextData.originalParams;
|
|
28
|
+
client = _useContextData.client;
|
|
36
29
|
var isPosNetworkError = ((_steps$step = steps[step]) === null || _steps$step === void 0 || (_steps$step = _steps$step.custom) === null || _steps$step === void 0 ? void 0 : _steps$step.isPosNetworkError) || false;
|
|
37
30
|
var dispatch = useDispatch();
|
|
38
31
|
|
|
@@ -43,14 +36,14 @@ export default (function (_ref) {
|
|
|
43
36
|
*/
|
|
44
37
|
var onRetry = function onRetry() {
|
|
45
38
|
onChange('page', 'pay');
|
|
46
|
-
dispatch(updateState(getInitState(eftpos,
|
|
39
|
+
dispatch(updateState(getInitState(eftpos, {
|
|
47
40
|
mode: mode,
|
|
48
41
|
name: name,
|
|
49
42
|
symbol: symbol,
|
|
50
43
|
amount: amount,
|
|
51
44
|
order_id: order_id,
|
|
52
45
|
number: ''
|
|
53
|
-
})))
|
|
46
|
+
})));
|
|
54
47
|
};
|
|
55
48
|
|
|
56
49
|
/**
|
|
@@ -59,14 +52,14 @@ export default (function (_ref) {
|
|
|
59
52
|
* @Date: 2024-08-20 11:30
|
|
60
53
|
*/
|
|
61
54
|
var onModify = function onModify() {
|
|
62
|
-
dispatch(updateState(getInitState(eftpos,
|
|
55
|
+
dispatch(updateState(getInitState(eftpos, {
|
|
63
56
|
mode: mode,
|
|
64
57
|
name: name,
|
|
65
58
|
symbol: symbol,
|
|
66
59
|
amount: amount,
|
|
67
60
|
order_id: order_id,
|
|
68
61
|
number: ''
|
|
69
|
-
})))
|
|
62
|
+
})));
|
|
70
63
|
onChange('page', 'amount');
|
|
71
64
|
};
|
|
72
65
|
|
|
@@ -7,12 +7,9 @@ export declare enum EftposEnum {
|
|
|
7
7
|
/** 后端支付 - 支付 + 退款 */
|
|
8
8
|
Windcave = "windcave",
|
|
9
9
|
Stripe = "stripe",
|
|
10
|
-
Linkly = "linkly"
|
|
11
|
-
/** 汇付天下 */
|
|
12
|
-
Huifu = "huifu"
|
|
10
|
+
Linkly = "linkly"
|
|
13
11
|
}
|
|
14
12
|
export declare enum StatusEnum {
|
|
15
|
-
Init = "init",
|
|
16
13
|
Loading = "loading",
|
|
17
14
|
Warn = "warn",
|
|
18
15
|
Fail = "fail",
|
|
@@ -163,8 +160,6 @@ export declare enum PayStatus {
|
|
|
163
160
|
'Unknown' = "701000",
|
|
164
161
|
/** 交易请求超时 */
|
|
165
162
|
'Timeout' = "701001",
|
|
166
|
-
/** 支付失败(汇付天下) */
|
|
167
|
-
'PaymentFailed' = "701002",
|
|
168
163
|
/** 繁忙 EFTPOS终端暂时不可用,因为EFTPOS正在处理另一个请求。 */
|
|
169
164
|
'PayOtherEftposFailed' = "701003",
|
|
170
165
|
/** 购物者没有出示卡片/卡片金额不足/在线拒绝/卡已过期/卡被锁定 */
|
|
@@ -4,11 +4,9 @@ export var EftposEnum = /*#__PURE__*/function (EftposEnum) {
|
|
|
4
4
|
EftposEnum["Windcave"] = "windcave";
|
|
5
5
|
EftposEnum["Stripe"] = "stripe";
|
|
6
6
|
EftposEnum["Linkly"] = "linkly";
|
|
7
|
-
EftposEnum["Huifu"] = "huifu";
|
|
8
7
|
return EftposEnum;
|
|
9
8
|
}({});
|
|
10
9
|
export var StatusEnum = /*#__PURE__*/function (StatusEnum) {
|
|
11
|
-
StatusEnum["Init"] = "init";
|
|
12
10
|
StatusEnum["Loading"] = "loading";
|
|
13
11
|
StatusEnum["Warn"] = "warn";
|
|
14
12
|
StatusEnum["Fail"] = "fail";
|
|
@@ -70,7 +68,6 @@ export var PayStatus = /*#__PURE__*/function (PayStatus) {
|
|
|
70
68
|
PayStatus["PairingFailure"] = "606020";
|
|
71
69
|
PayStatus["Unknown"] = "701000";
|
|
72
70
|
PayStatus["Timeout"] = "701001";
|
|
73
|
-
PayStatus["PaymentFailed"] = "701002";
|
|
74
71
|
PayStatus["PayOtherEftposFailed"] = "701003";
|
|
75
72
|
PayStatus["PayCardErrorFailed"] = "701004";
|
|
76
73
|
PayStatus["NoNetWork"] = "701005";
|
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"loading" | "
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -32,5 +32,4 @@ export declare const useStoreRef: <T extends {
|
|
|
32
32
|
*/
|
|
33
33
|
export declare const useFail: (index: number) => (res: {
|
|
34
34
|
code?: `${PayStatus}`;
|
|
35
|
-
message?: string;
|
|
36
35
|
}, isMark?: boolean) => void;
|
|
@@ -314,18 +314,6 @@ export var useFail = function useFail(index) {
|
|
|
314
314
|
}));
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
|
-
if (code === PayStatus.PaymentFailed) {
|
|
318
|
-
// 前往错误页 不可标记状态
|
|
319
|
-
steps[index].title = locales.getText('page.eftpos-pay.text.transaction.fail');
|
|
320
|
-
steps[index].fail = (res === null || res === void 0 ? void 0 : res.message) || locales.getText('page.eftpos-pay.text.failed')(modeRef.current);
|
|
321
|
-
steps[index].status = 'fail';
|
|
322
|
-
dispatch(updateSteps(steps));
|
|
323
|
-
dispatch(updateComponent('Fail'));
|
|
324
|
-
dispatch(updateCustom({
|
|
325
|
-
errorStatus: 'know' // unknow know
|
|
326
|
-
}));
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
317
|
|
|
330
318
|
// 其他场景前往未知错误页
|
|
331
319
|
steps[index].title = locales.getText('page.eftpos-pay.text.failed')(modeRef.current);
|
|
@@ -119,7 +119,7 @@ export default (function (props) {
|
|
|
119
119
|
if (props.source === RestoreEumn.Restore) {
|
|
120
120
|
return props.params;
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
return getInitState(props.type, props.params ? _objectSpread(_objectSpread({
|
|
123
123
|
mode: mode
|
|
124
124
|
}, props.params), {}, {
|
|
125
125
|
symbol: current
|
|
@@ -127,10 +127,6 @@ export default (function (props) {
|
|
|
127
127
|
mode: mode,
|
|
128
128
|
symbol: current
|
|
129
129
|
});
|
|
130
|
-
// 手动将 originalParams 添加到 State 根级别
|
|
131
|
-
return _objectSpread(_objectSpread({}, initState), {}, {
|
|
132
|
-
originalParams: props.params || undefined
|
|
133
|
-
});
|
|
134
130
|
}, [mode, props.params, props.type, symbol]);
|
|
135
131
|
var stateRef = useRef(state);
|
|
136
132
|
useEffect(function () {
|
|
@@ -107,18 +107,6 @@ declare const _default: {
|
|
|
107
107
|
'page.eftpos-pay.text.not.connected': string;
|
|
108
108
|
'page.eftpos-pay.text.tyro-btn': (key: string) => string;
|
|
109
109
|
'page.eftpos-pay.text.tyro': (key: string) => string;
|
|
110
|
-
'page.eftpos-pay.text.huifu.scan.title': string;
|
|
111
|
-
'page.eftpos-pay.text.huifu.scan.gun.connected': string;
|
|
112
|
-
'page.eftpos-pay.text.huifu.scan.gun.connected-desc': string;
|
|
113
|
-
'page.eftpos-pay.text.huifu.scan.gun.not-connected': string;
|
|
114
|
-
'page.eftpos-pay.text.huifu.scan.gun.not-connected-desc': string;
|
|
115
|
-
'page.eftpos-pay.text.huifu.scan.camera-title': string;
|
|
116
|
-
'page.eftpos-pay.text.huifu.scan.camera-desc': string;
|
|
117
|
-
'page.eftpos-pay.text.huifu.scan.input-title': string;
|
|
118
|
-
'page.eftpos-pay.text.huifu.scan.input-placeholder': string;
|
|
119
|
-
'page.eftpos-pay.text.huifu.scan.input-tip': string;
|
|
120
|
-
'page.eftpos-pay.text.huifu.scan.cancel': string;
|
|
121
|
-
'page.eftpos-pay.text.huifu.scan.confirm': string;
|
|
122
110
|
};
|
|
123
111
|
'zh-CN': {
|
|
124
112
|
'page.eftpos-pay.text.loading': (mode: string) => string;
|
|
@@ -228,18 +216,6 @@ declare const _default: {
|
|
|
228
216
|
'page.eftpos-pay.text.not.connected': string;
|
|
229
217
|
'page.eftpos-pay.text.tyro-btn': (key: string) => string;
|
|
230
218
|
'page.eftpos-pay.text.tyro': (key: string) => string | string[];
|
|
231
|
-
'page.eftpos-pay.text.huifu.scan.title': string;
|
|
232
|
-
'page.eftpos-pay.text.huifu.scan.gun.connected': string;
|
|
233
|
-
'page.eftpos-pay.text.huifu.scan.gun.connected-desc': string;
|
|
234
|
-
'page.eftpos-pay.text.huifu.scan.gun.not-connected': string;
|
|
235
|
-
'page.eftpos-pay.text.huifu.scan.gun.not-connected-desc': string;
|
|
236
|
-
'page.eftpos-pay.text.huifu.scan.camera-title': string;
|
|
237
|
-
'page.eftpos-pay.text.huifu.scan.camera-desc': string;
|
|
238
|
-
'page.eftpos-pay.text.huifu.scan.input-title': string;
|
|
239
|
-
'page.eftpos-pay.text.huifu.scan.input-placeholder': string;
|
|
240
|
-
'page.eftpos-pay.text.huifu.scan.input-tip': string;
|
|
241
|
-
'page.eftpos-pay.text.huifu.scan.cancel': string;
|
|
242
|
-
'page.eftpos-pay.text.huifu.scan.confirm': string;
|
|
243
219
|
};
|
|
244
220
|
'zh-HK': {
|
|
245
221
|
'page.eftpos-pay.text.loading': (mode: string) => string;
|
|
@@ -349,18 +325,6 @@ declare const _default: {
|
|
|
349
325
|
'page.eftpos-pay.text.not.connected': string;
|
|
350
326
|
'page.eftpos-pay.text.tyro-btn': (key: string) => string;
|
|
351
327
|
'page.eftpos-pay.text.tyro': (key: string) => string | string[];
|
|
352
|
-
'page.eftpos-pay.text.huifu.scan.title': string;
|
|
353
|
-
'page.eftpos-pay.text.huifu.scan.gun.connected': string;
|
|
354
|
-
'page.eftpos-pay.text.huifu.scan.gun.connected-desc': string;
|
|
355
|
-
'page.eftpos-pay.text.huifu.scan.gun.not-connected': string;
|
|
356
|
-
'page.eftpos-pay.text.huifu.scan.gun.not-connected-desc': string;
|
|
357
|
-
'page.eftpos-pay.text.huifu.scan.camera-title': string;
|
|
358
|
-
'page.eftpos-pay.text.huifu.scan.camera-desc': string;
|
|
359
|
-
'page.eftpos-pay.text.huifu.scan.input-title': string;
|
|
360
|
-
'page.eftpos-pay.text.huifu.scan.input-placeholder': string;
|
|
361
|
-
'page.eftpos-pay.text.huifu.scan.input-tip': string;
|
|
362
|
-
'page.eftpos-pay.text.huifu.scan.cancel': string;
|
|
363
|
-
'page.eftpos-pay.text.huifu.scan.confirm': string;
|
|
364
328
|
};
|
|
365
329
|
};
|
|
366
330
|
export default _default;
|
|
@@ -149,20 +149,7 @@ export default {
|
|
|
149
149
|
},
|
|
150
150
|
'page.eftpos-pay.text.tyro': function pageEftposPayTextTyro(key) {
|
|
151
151
|
return key;
|
|
152
|
-
}
|
|
153
|
-
// 汇付天下定制文案
|
|
154
|
-
'page.eftpos-pay.text.huifu.scan.title': 'Scan to Pay (Alipay · WeChat Pay · UnionPay)',
|
|
155
|
-
'page.eftpos-pay.text.huifu.scan.gun.connected': 'Scanner Connected',
|
|
156
|
-
'page.eftpos-pay.text.huifu.scan.gun.connected-desc': 'Scan the customer’s payment code to collect payment',
|
|
157
|
-
'page.eftpos-pay.text.huifu.scan.gun.not-connected': 'Scanner Not Connected',
|
|
158
|
-
'page.eftpos-pay.text.huifu.scan.gun.not-connected-desc': 'Connect the scanner to scan the customer’s payment code',
|
|
159
|
-
'page.eftpos-pay.text.huifu.scan.camera-title': 'Click to use the camera',
|
|
160
|
-
'page.eftpos-pay.text.huifu.scan.camera-desc': 'Align the customer’s payment code within the frame',
|
|
161
|
-
'page.eftpos-pay.text.huifu.scan.input-title': 'Or enter the payment code manually',
|
|
162
|
-
'page.eftpos-pay.text.huifu.scan.input-placeholder': 'Enter payment code',
|
|
163
|
-
'page.eftpos-pay.text.huifu.scan.input-tip': 'Tip: The payment code is 18 digits',
|
|
164
|
-
'page.eftpos-pay.text.huifu.scan.cancel': 'Cancel',
|
|
165
|
-
'page.eftpos-pay.text.huifu.scan.confirm': 'Confirm Payment'
|
|
152
|
+
}
|
|
166
153
|
},
|
|
167
154
|
'zh-CN': {
|
|
168
155
|
'page.eftpos-pay.text.loading': function pageEftposPayTextLoading(mode) {
|
|
@@ -460,20 +447,7 @@ export default {
|
|
|
460
447
|
return '请使用以下选项之一回答此问题';
|
|
461
448
|
}
|
|
462
449
|
return key;
|
|
463
|
-
}
|
|
464
|
-
// 汇付天下定制文案
|
|
465
|
-
'page.eftpos-pay.text.huifu.scan.title': '扫码支付(支付宝 · 微信支付 · 银联)',
|
|
466
|
-
'page.eftpos-pay.text.huifu.scan.gun.connected': '扫码枪已连接',
|
|
467
|
-
'page.eftpos-pay.text.huifu.scan.gun.connected-desc': '直接扫描消费者付款码即可',
|
|
468
|
-
'page.eftpos-pay.text.huifu.scan.gun.not-connected': '未连接扫码枪',
|
|
469
|
-
'page.eftpos-pay.text.huifu.scan.gun.not-connected-desc': '连接扫码枪后可直接扫码消费者付款码',
|
|
470
|
-
'page.eftpos-pay.text.huifu.scan.camera-title': '点击可使用设备摄像头',
|
|
471
|
-
'page.eftpos-pay.text.huifu.scan.camera-desc': '将消费者付款码对准扫描框',
|
|
472
|
-
'page.eftpos-pay.text.huifu.scan.input-title': '或手动输入付款码',
|
|
473
|
-
'page.eftpos-pay.text.huifu.scan.input-placeholder': '请输入',
|
|
474
|
-
'page.eftpos-pay.text.huifu.scan.input-tip': '提示:付款码为18位数字',
|
|
475
|
-
'page.eftpos-pay.text.huifu.scan.cancel': '取消',
|
|
476
|
-
'page.eftpos-pay.text.huifu.scan.confirm': '确认支付'
|
|
450
|
+
}
|
|
477
451
|
},
|
|
478
452
|
'zh-HK': {
|
|
479
453
|
'page.eftpos-pay.text.loading': function pageEftposPayTextLoading(mode) {
|
|
@@ -771,19 +745,6 @@ export default {
|
|
|
771
745
|
return '請使用以下選項之一回答此問題';
|
|
772
746
|
}
|
|
773
747
|
return key;
|
|
774
|
-
}
|
|
775
|
-
// 汇付天下定制文案
|
|
776
|
-
'page.eftpos-pay.text.huifu.scan.title': '掃碼支付(支付寶 · 微信支付 · 銀聯)',
|
|
777
|
-
'page.eftpos-pay.text.huifu.scan.gun.connected': '掃碼槍已連接',
|
|
778
|
-
'page.eftpos-pay.text.huifu.scan.gun.connected-desc': '直接掃描消費者付款碼即可',
|
|
779
|
-
'page.eftpos-pay.text.huifu.scan.gun.not-connected': '未連接掃碼槍',
|
|
780
|
-
'page.eftpos-pay.text.huifu.scan.gun.not-connected-desc': '連接掃碼槍後可直接掃碼消費者付款碼',
|
|
781
|
-
'page.eftpos-pay.text.huifu.scan.camera-title': '點擊可使用設備攝像頭',
|
|
782
|
-
'page.eftpos-pay.text.huifu.scan.camera-desc': '將消費者付款碼對準掃描框',
|
|
783
|
-
'page.eftpos-pay.text.huifu.scan.input-title': '或手動輸入付款碼',
|
|
784
|
-
'page.eftpos-pay.text.huifu.scan.input-placeholder': '請輸入',
|
|
785
|
-
'page.eftpos-pay.text.huifu.scan.input-tip': '提示:付款碼為18位數字',
|
|
786
|
-
'page.eftpos-pay.text.huifu.scan.cancel': '取消',
|
|
787
|
-
'page.eftpos-pay.text.huifu.scan.confirm': '確認支付'
|
|
748
|
+
}
|
|
788
749
|
}
|
|
789
750
|
};
|
|
@@ -4,5 +4,4 @@ export { default as Payo } from './payo';
|
|
|
4
4
|
export { default as Windcave } from './windcave/windcave';
|
|
5
5
|
export { default as Tyro } from './tyro';
|
|
6
6
|
export { default as Linkly } from './linkly';
|
|
7
|
-
export { default as Huifu } from './huifu';
|
|
8
7
|
export declare const getInitState: (type: string, params?: any) => State;
|
|
@@ -3,15 +3,12 @@ import getPayoInitState from "./payo/const";
|
|
|
3
3
|
import getTyroInitState from "./tyro/const";
|
|
4
4
|
import getWindcaveInitState from "./windcave/const";
|
|
5
5
|
import getLinklyInitState from "./linkly/const";
|
|
6
|
-
import getHuifuInitState from "./huifu/const";
|
|
7
6
|
export { getAmonunt } from "./helper";
|
|
8
7
|
export { default as Payo } from "./payo";
|
|
9
8
|
export { default as Windcave } from "./windcave/windcave";
|
|
10
9
|
export { default as Tyro } from "./tyro";
|
|
11
10
|
export { default as Linkly } from "./linkly";
|
|
12
|
-
export { default as Huifu } from "./huifu";
|
|
13
11
|
export var getInitState = function getInitState(type, params) {
|
|
14
|
-
console.log('type = ', type);
|
|
15
12
|
switch (type) {
|
|
16
13
|
case EftposEnum.Payo:
|
|
17
14
|
return getPayoInitState(params);
|
|
@@ -21,8 +18,6 @@ export var getInitState = function getInitState(type, params) {
|
|
|
21
18
|
return getTyroInitState(params);
|
|
22
19
|
case EftposEnum.Linkly:
|
|
23
20
|
return getLinklyInitState(params);
|
|
24
|
-
case EftposEnum.Huifu:
|
|
25
|
-
return getHuifuInitState(params);
|
|
26
21
|
default:
|
|
27
22
|
throw new Error('未知的厂商类型');
|
|
28
23
|
}
|
|
@@ -10,7 +10,7 @@ import { getPayParams } from "./helper";
|
|
|
10
10
|
import Manual from "./component/manual";
|
|
11
11
|
import Signature from "./component/signature";
|
|
12
12
|
import { StatusEnum, PayRouteEnum, ClientEnum } from "./const";
|
|
13
|
-
import { Payo, Windcave, Tyro, Linkly
|
|
13
|
+
import { Payo, Windcave, Tyro, Linkly } from "./manufacturer";
|
|
14
14
|
import { useContextData, useDispatch, updateStatus, backUpProduction, updateComponent, backUpFree, updateState } from "./store";
|
|
15
15
|
import "./index.less";
|
|
16
16
|
|
|
@@ -156,7 +156,7 @@ var Pay = function Pay(_ref) {
|
|
|
156
156
|
style: data.type === 'step' ? {} : {
|
|
157
157
|
display: 'none'
|
|
158
158
|
}
|
|
159
|
-
},
|
|
159
|
+
}, /*#__PURE__*/React.createElement(Header, {
|
|
160
160
|
status: data.status,
|
|
161
161
|
title: data.title,
|
|
162
162
|
subTitle: data.subTitle
|
|
@@ -182,10 +182,6 @@ var Pay = function Pay(_ref) {
|
|
|
182
182
|
key: data.key,
|
|
183
183
|
api: api,
|
|
184
184
|
onChange: onChange
|
|
185
|
-
}) : null, data.eftpos === 'huifu' ? /*#__PURE__*/React.createElement(Huifu, {
|
|
186
|
-
key: data.key,
|
|
187
|
-
onChange: onChange,
|
|
188
|
-
isNativeApp: isMobile
|
|
189
185
|
}) : null) : null, data.type === PayRouteEnum.Unset && Comm ? /*#__PURE__*/React.createElement(Comm, {
|
|
190
186
|
onChange: onChange,
|
|
191
187
|
api: api,
|