@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,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
import { HuifuActionProps } from './types';
|
|
4
|
-
export declare const NativeDeviceStatus: ({ type, status, }: {
|
|
5
|
-
type: 'scanner' | 'camera';
|
|
6
|
-
status: boolean;
|
|
7
|
-
}) => JSX.Element;
|
|
8
|
-
export declare const ScanAction: React.FC<HuifuActionProps>;
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import React, { useState, useEffect } from 'react';
|
|
8
|
-
import { locales } from '@pisell/utils';
|
|
9
|
-
import { Iconfont, Button, Input } from '@pisell/materials';
|
|
10
|
-
import "./index.less";
|
|
11
|
-
import { useScannerDevice, useCameraDevice, useScanListener } from "./hooks";
|
|
12
|
-
export var NativeDeviceStatus = function NativeDeviceStatus(_ref) {
|
|
13
|
-
var type = _ref.type,
|
|
14
|
-
status = _ref.status;
|
|
15
|
-
var iconType = type === 'scanner' ? 'pisell2-Scanner' : 'pisell2-camera';
|
|
16
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
className: "pisell-eftpos-pay-huifu-scan-status"
|
|
18
|
-
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
19
|
-
type: iconType,
|
|
20
|
-
style: {
|
|
21
|
-
fontSize: '40px'
|
|
22
|
-
}
|
|
23
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
24
|
-
className: "pisell-eftpos-pay-huifu-scan-status-wrapper"
|
|
25
|
-
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
26
|
-
style: {
|
|
27
|
-
borderRadius: '50%',
|
|
28
|
-
background: status ? '#17B26A' : '#F04438',
|
|
29
|
-
color: '#fff'
|
|
30
|
-
},
|
|
31
|
-
type: status ? 'pisell2-check' : 'pisell2-x-close'
|
|
32
|
-
})));
|
|
33
|
-
};
|
|
34
|
-
var DEFAULT_SCANNER_CLASS = 'pisell-eftpos-pay-huifu-scan-content-scanner';
|
|
35
|
-
export var ScanAction = function ScanAction(_ref2) {
|
|
36
|
-
var isNativeApp = _ref2.isNativeApp,
|
|
37
|
-
onClose = _ref2.onClose,
|
|
38
|
-
onPayClick = _ref2.onPayClick,
|
|
39
|
-
onScanCallback = _ref2.onScanCallback;
|
|
40
|
-
var _useScannerDevice = useScannerDevice(),
|
|
41
|
-
scannerStatus = _useScannerDevice.scannerStatus;
|
|
42
|
-
var _useCameraDevice = useCameraDevice(),
|
|
43
|
-
cameraStatus = _useCameraDevice.cameraStatus,
|
|
44
|
-
activeCamera = _useCameraDevice.activeCamera;
|
|
45
|
-
var _useScanListener = useScanListener(),
|
|
46
|
-
scanResult = _useScanListener.scanResult;
|
|
47
|
-
var _useState = useState(''),
|
|
48
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
49
|
-
inputValue = _useState2[0],
|
|
50
|
-
setInputValue = _useState2[1];
|
|
51
|
-
useEffect(function () {
|
|
52
|
-
if (!!(scanResult !== null && scanResult !== void 0 && scanResult.value)) {
|
|
53
|
-
onScanCallback(scanResult.value);
|
|
54
|
-
}
|
|
55
|
-
}, [scanResult]);
|
|
56
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
57
|
-
className: "pisell-eftpos-pay-huifu-scan"
|
|
58
|
-
}, !isNativeApp ? /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: "pisell-eftpos-pay-huifu-scan-header"
|
|
60
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
61
|
-
className: "pisell-eftpos-pay-huifu-scan-header-title"
|
|
62
|
-
}, locales.getText('page.eftpos-pay.text.huifu.scan.title')), /*#__PURE__*/React.createElement("div", {
|
|
63
|
-
className: "pisell-eftpos-pay-huifu-scan-header-close",
|
|
64
|
-
onClick: onClose
|
|
65
|
-
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
66
|
-
type: "pisell2-x-close",
|
|
67
|
-
style: {
|
|
68
|
-
fontSize: '24px'
|
|
69
|
-
}
|
|
70
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
71
|
-
className: "pisell-eftpos-pay-huifu-scan-header-divider"
|
|
72
|
-
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
73
|
-
className: "pisell-eftpos-pay-huifu-scan-content",
|
|
74
|
-
style: {
|
|
75
|
-
paddingTop: isNativeApp ? '0' : '24px'
|
|
76
|
-
}
|
|
77
|
-
}, !!isNativeApp && /*#__PURE__*/React.createElement("div", {
|
|
78
|
-
className: "pisell-eftpos-pay-huifu-scan-content-title"
|
|
79
|
-
}, locales.getText('page.eftpos-pay.text.huifu.scan.title')), /*#__PURE__*/React.createElement("div", {
|
|
80
|
-
className: "".concat(DEFAULT_SCANNER_CLASS, " ").concat(DEFAULT_SCANNER_CLASS, "-").concat(scannerStatus ? 'active' : 'unactive')
|
|
81
|
-
}, /*#__PURE__*/React.createElement(NativeDeviceStatus, {
|
|
82
|
-
type: "scanner",
|
|
83
|
-
status: scannerStatus
|
|
84
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
85
|
-
className: "pisell-eftpos-pay-huifu-scan-content-scanner-right"
|
|
86
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
87
|
-
className: "".concat(DEFAULT_SCANNER_CLASS, "-").concat(scannerStatus ? 'active' : 'unactive', "-title")
|
|
88
|
-
}, scannerStatus ? locales.getText('page.eftpos-pay.text.huifu.scan.gun.connected') : locales.getText('page.eftpos-pay.text.huifu.scan.gun.not-connected')), /*#__PURE__*/React.createElement("span", {
|
|
89
|
-
className: "".concat(DEFAULT_SCANNER_CLASS, "-").concat(scannerStatus ? 'active' : 'unactive', "-desc")
|
|
90
|
-
}, scannerStatus ? locales.getText('page.eftpos-pay.text.huifu.scan.gun.connected-desc') : locales.getText('page.eftpos-pay.text.huifu.scan.gun.not-connected-desc')))), cameraStatus && /*#__PURE__*/React.createElement("div", {
|
|
91
|
-
className: "pisell-eftpos-pay-huifu-scan-content-camera",
|
|
92
|
-
onClick: activeCamera
|
|
93
|
-
}, /*#__PURE__*/React.createElement(NativeDeviceStatus, {
|
|
94
|
-
type: "camera",
|
|
95
|
-
status: cameraStatus
|
|
96
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
97
|
-
className: "pisell-eftpos-pay-huifu-scan-content-camera-right"
|
|
98
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
99
|
-
className: "pisell-eftpos-pay-huifu-scan-content-camera-title"
|
|
100
|
-
}, locales.getText('page.eftpos-pay.text.huifu.scan.camera-title')), /*#__PURE__*/React.createElement("span", {
|
|
101
|
-
className: "pisell-eftpos-pay-huifu-scan-content-camera-desc"
|
|
102
|
-
}, locales.getText('page.eftpos-pay.text.huifu.scan.camera-desc')))), /*#__PURE__*/React.createElement("div", {
|
|
103
|
-
className: "pisell-eftpos-pay-huifu-scan-content-input-wrapper"
|
|
104
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
105
|
-
className: "pisell-eftpos-pay-huifu-scan-content-input-wrapper-title"
|
|
106
|
-
}, locales.getText('page.eftpos-pay.text.huifu.scan.input-title')), /*#__PURE__*/React.createElement(Input, {
|
|
107
|
-
placeholder: locales.getText('page.eftpos-pay.text.huifu.scan.input-placeholder'),
|
|
108
|
-
maxLength: 18,
|
|
109
|
-
style: {
|
|
110
|
-
width: '100%',
|
|
111
|
-
fontSize: '16px'
|
|
112
|
-
},
|
|
113
|
-
size: "large",
|
|
114
|
-
value: inputValue,
|
|
115
|
-
onChange: function onChange(e) {
|
|
116
|
-
var _e$target;
|
|
117
|
-
// 使用正则控制只能输入0-9字符,且长度不超过18
|
|
118
|
-
var value = (e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) || '';
|
|
119
|
-
var regex = /^[0-9]*$/;
|
|
120
|
-
if (regex.test(value) && (value === null || value === void 0 ? void 0 : value.length) <= 18) {
|
|
121
|
-
setInputValue(value);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
125
|
-
className: "pisell-eftpos-pay-huifu-scan-content-input-wrapper-tip"
|
|
126
|
-
}, "\uD83D\uDCA1", locales.getText('page.eftpos-pay.text.huifu.scan.input-tip')))), /*#__PURE__*/React.createElement("div", {
|
|
127
|
-
className: "pisell-eftpos-pay-huifu-scan-footer"
|
|
128
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
129
|
-
className: "pisell-eftpos-pay-huifu-scan-footer-divider"
|
|
130
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
131
|
-
type: "default",
|
|
132
|
-
block: true,
|
|
133
|
-
size: "large",
|
|
134
|
-
className: "pisell-eftpos-pay-huifu-scan-footer-button",
|
|
135
|
-
onClick: onClose
|
|
136
|
-
}, locales.getText('page.eftpos-pay.text.huifu.scan.cancel')), /*#__PURE__*/React.createElement(Button, {
|
|
137
|
-
type: "primary",
|
|
138
|
-
block: true,
|
|
139
|
-
size: "large",
|
|
140
|
-
disabled: !inputValue || (inputValue === null || inputValue === void 0 ? void 0 : inputValue.length) < 18,
|
|
141
|
-
onClick: function onClick() {
|
|
142
|
-
return onPayClick(inputValue);
|
|
143
|
-
},
|
|
144
|
-
className: "pisell-eftpos-pay-huifu-scan-footer-button"
|
|
145
|
-
}, locales.getText('page.eftpos-pay.text.huifu.scan.confirm'))));
|
|
146
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
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
|
-
var _excluded = ["order_id", "name", "symbol", "amount", "mode", "number", "pay", "device", "net", "client"];
|
|
3
|
-
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; }
|
|
4
|
-
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; }
|
|
5
|
-
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; }
|
|
6
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
-
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); }
|
|
8
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
-
import { locales } from '@pisell/utils';
|
|
11
|
-
import { ClientEnum, EftposEnum, ModeEnum, PayRouteEnum, StatusEnum } from "../const";
|
|
12
|
-
export var getStep = function getStep() {
|
|
13
|
-
var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ModeEnum.Pay;
|
|
14
|
-
return [{
|
|
15
|
-
key: Date.now(),
|
|
16
|
-
title: locales.getText('page.eftpos-pay.text.loading')(mode),
|
|
17
|
-
// 'Payment in process...',
|
|
18
|
-
text: locales.getText('page.eftpos-pay.text.waiting.processing'),
|
|
19
|
-
// 'Waiting for the processing...',
|
|
20
|
-
warn: '',
|
|
21
|
-
tip: locales.getText('page.eftpos-pay.text.processing'),
|
|
22
|
-
// 'processing...',
|
|
23
|
-
status: StatusEnum.Loading
|
|
24
|
-
}];
|
|
25
|
-
};
|
|
26
|
-
export default (function (params) {
|
|
27
|
-
var _ref = params || {
|
|
28
|
-
mode: ModeEnum.Pay
|
|
29
|
-
},
|
|
30
|
-
order_id = _ref.order_id,
|
|
31
|
-
name = _ref.name,
|
|
32
|
-
symbol = _ref.symbol,
|
|
33
|
-
amount = _ref.amount,
|
|
34
|
-
mode = _ref.mode,
|
|
35
|
-
number = _ref.number,
|
|
36
|
-
pay = _ref.pay,
|
|
37
|
-
device = _ref.device,
|
|
38
|
-
net = _ref.net,
|
|
39
|
-
client = _ref.client,
|
|
40
|
-
other = _objectWithoutProperties(_ref, _excluded);
|
|
41
|
-
console.log('params =>>>>>> ', params);
|
|
42
|
-
var isPay = mode === ModeEnum.Pay || mode === ModeEnum.FullPay;
|
|
43
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
44
|
-
order_id: order_id,
|
|
45
|
-
name: name,
|
|
46
|
-
symbol: symbol,
|
|
47
|
-
amount: amount,
|
|
48
|
-
mode: mode,
|
|
49
|
-
eftpos: EftposEnum.Huifu,
|
|
50
|
-
key: Date.now(),
|
|
51
|
-
step: 0,
|
|
52
|
-
type: PayRouteEnum.Step,
|
|
53
|
-
title: isPay ? '' : locales.getText('page.eftpos-pay.text.loading')(mode),
|
|
54
|
-
component: '',
|
|
55
|
-
status: isPay ? StatusEnum.Init : StatusEnum.Loading,
|
|
56
|
-
steps: getStep(mode),
|
|
57
|
-
render: true,
|
|
58
|
-
client: client !== 'undefined' ? client : ClientEnum.Merchant,
|
|
59
|
-
warn: '',
|
|
60
|
-
custom: other || {}
|
|
61
|
-
}, typeof net !== 'undefined' ? {
|
|
62
|
-
net: net
|
|
63
|
-
} : {}), typeof number !== 'undefined' ? {
|
|
64
|
-
number: number
|
|
65
|
-
} : {}), typeof pay !== 'undefined' ? {
|
|
66
|
-
pay: pay
|
|
67
|
-
} : {}), typeof device !== 'undefined' ? {
|
|
68
|
-
device: device
|
|
69
|
-
} : {});
|
|
70
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare const useTerminal: () => {
|
|
2
|
-
isTerminal: any;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* 获取扫码设备连接状态
|
|
6
|
-
*/
|
|
7
|
-
export declare const useScannerDevice: () => {
|
|
8
|
-
scannerStatus: boolean;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* 摄像头激活和状态获取
|
|
12
|
-
*/
|
|
13
|
-
export declare const useCameraDevice: () => {
|
|
14
|
-
activeCamera: () => void;
|
|
15
|
-
cameraStatus: any;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* 获取外部设备扫描结果
|
|
19
|
-
*/
|
|
20
|
-
export declare const useScanListener: () => {
|
|
21
|
-
scanResult: {
|
|
22
|
-
type: 'scanner' | 'nfc' | 'camera';
|
|
23
|
-
value: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import { useEffect, useState, useCallback } from 'react';
|
|
8
|
-
import useEngineContext from "../../../hooks/useEngineContext";
|
|
9
|
-
export var useTerminal = function useTerminal() {
|
|
10
|
-
var _context$appHelper, _interaction$utils, _interaction$utils$is;
|
|
11
|
-
var context = useEngineContext();
|
|
12
|
-
var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
|
13
|
-
interaction = _ref.interaction,
|
|
14
|
-
isTerminal = _ref.isTerminal;
|
|
15
|
-
return {
|
|
16
|
-
isTerminal: isTerminal && isTerminal() || (interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils))
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* 获取扫码设备连接状态
|
|
22
|
-
*/
|
|
23
|
-
export var useScannerDevice = function useScannerDevice() {
|
|
24
|
-
var _context$appHelper2;
|
|
25
|
-
var _useState = useState(false),
|
|
26
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
-
scannerStatus = _useState2[0],
|
|
28
|
-
setScannerStatus = _useState2[1];
|
|
29
|
-
var context = useEngineContext();
|
|
30
|
-
var _ref2 = ((_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.utils) || {},
|
|
31
|
-
interaction = _ref2.interaction;
|
|
32
|
-
useEffect(function () {
|
|
33
|
-
var _interaction$utils2, _interaction$utils2$p, _interaction$utils3, _interaction$utils3$m;
|
|
34
|
-
// 主动获取设备连接状态
|
|
35
|
-
interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || (_interaction$utils2$p = _interaction$utils2.postMessageToApp) === null || _interaction$utils2$p === void 0 || _interaction$utils2$p.call(_interaction$utils2, {
|
|
36
|
-
module: 'global',
|
|
37
|
-
key: 'get_peripherals_status',
|
|
38
|
-
data: {}
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
// 设备当前连接状态返回
|
|
42
|
-
interaction === null || interaction === void 0 || (_interaction$utils3 = interaction.utils) === null || _interaction$utils3 === void 0 || (_interaction$utils3$m = _interaction$utils3.mountFunction) === null || _interaction$utils3$m === void 0 || _interaction$utils3$m.call(_interaction$utils3, 'global', 'peripheralsStatus', function (strPeripherals) {
|
|
43
|
-
try {
|
|
44
|
-
var peripherals = JSON.parse(strPeripherals);
|
|
45
|
-
setScannerStatus((peripherals === null || peripherals === void 0 ? void 0 : peripherals.scanner) == 'connected');
|
|
46
|
-
} catch (err) {
|
|
47
|
-
console.error(err);
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}, []);
|
|
51
|
-
return {
|
|
52
|
-
scannerStatus: scannerStatus
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* 摄像头激活和状态获取
|
|
58
|
-
*/
|
|
59
|
-
export var useCameraDevice = function useCameraDevice() {
|
|
60
|
-
var _context$appHelper3, _interaction$utils5, _interaction$utils5$i;
|
|
61
|
-
var context = useEngineContext();
|
|
62
|
-
var _ref3 = ((_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 ? void 0 : _context$appHelper3.utils) || {},
|
|
63
|
-
interaction = _ref3.interaction,
|
|
64
|
-
isTerminal = _ref3.isTerminal;
|
|
65
|
-
var activeCamera = useCallback(function () {
|
|
66
|
-
var _interaction$utils4, _interaction$utils4$p;
|
|
67
|
-
interaction === null || interaction === void 0 || (_interaction$utils4 = interaction.utils) === null || _interaction$utils4 === void 0 || (_interaction$utils4$p = _interaction$utils4.postMessageToApp) === null || _interaction$utils4$p === void 0 || _interaction$utils4$p.call(_interaction$utils4, {
|
|
68
|
-
module: 'global',
|
|
69
|
-
key: 'active_native_scanner',
|
|
70
|
-
data: {
|
|
71
|
-
source: 'eftposPay_huifu'
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}, []);
|
|
75
|
-
return {
|
|
76
|
-
activeCamera: activeCamera,
|
|
77
|
-
cameraStatus: isTerminal && isTerminal() || (interaction === null || interaction === void 0 || (_interaction$utils5 = interaction.utils) === null || _interaction$utils5 === void 0 || (_interaction$utils5$i = _interaction$utils5.isAppEnv) === null || _interaction$utils5$i === void 0 ? void 0 : _interaction$utils5$i.call(_interaction$utils5))
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* 获取外部设备扫描结果
|
|
83
|
-
*/
|
|
84
|
-
export var useScanListener = function useScanListener() {
|
|
85
|
-
var _context$appHelper4, _interaction$utils6, _interaction$utils6$i;
|
|
86
|
-
var context = useEngineContext();
|
|
87
|
-
var _ref4 = ((_context$appHelper4 = context.appHelper) === null || _context$appHelper4 === void 0 ? void 0 : _context$appHelper4.utils) || {},
|
|
88
|
-
interaction = _ref4.interaction,
|
|
89
|
-
isTerminal = _ref4.isTerminal;
|
|
90
|
-
var _useState3 = useState({
|
|
91
|
-
type: 'scanner',
|
|
92
|
-
value: ''
|
|
93
|
-
}),
|
|
94
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
95
|
-
scanResult = _useState4[0],
|
|
96
|
-
setScanResult = _useState4[1];
|
|
97
|
-
var isNativeEnv = isTerminal && isTerminal() || (interaction === null || interaction === void 0 || (_interaction$utils6 = interaction.utils) === null || _interaction$utils6 === void 0 || (_interaction$utils6$i = _interaction$utils6.isAppEnv) === null || _interaction$utils6$i === void 0 ? void 0 : _interaction$utils6$i.call(_interaction$utils6));
|
|
98
|
-
useEffect(function () {
|
|
99
|
-
var _interaction$utils7, _interaction$utils7$m;
|
|
100
|
-
// 获取外部设备扫描结果
|
|
101
|
-
interaction === null || interaction === void 0 || (_interaction$utils7 = interaction.utils) === null || _interaction$utils7 === void 0 || (_interaction$utils7$m = _interaction$utils7.mountFunction) === null || _interaction$utils7$m === void 0 || _interaction$utils7$m.call(_interaction$utils7, 'global', 'peripheralsResult', function (strVal) {
|
|
102
|
-
try {
|
|
103
|
-
var val = JSON.parse(strVal);
|
|
104
|
-
setScanResult(val);
|
|
105
|
-
} catch (err) {
|
|
106
|
-
console.error(err);
|
|
107
|
-
setScanResult({
|
|
108
|
-
type: 'scanner',
|
|
109
|
-
value: ''
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
// 支持在web环境下监听外部设备扫描结果,使用监听键盘事件
|
|
115
|
-
var inputBuffer = '';
|
|
116
|
-
var lastInputTime = 0;
|
|
117
|
-
var inputTimer = null;
|
|
118
|
-
var handleKeyDown = function handleKeyDown(e) {
|
|
119
|
-
// 过滤特殊键
|
|
120
|
-
if (e.key === 'Shift' || e.key === 'Control' || e.key === 'Alt' || e.key === 'Meta' || e.key === 'Tab' || e.key === 'CapsLock' || e.key === 'Escape' || e.key.startsWith('Arrow') || e.ctrlKey || e.metaKey) {
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
var currentTime = Date.now();
|
|
124
|
-
var timeDiff = currentTime - lastInputTime;
|
|
125
|
-
|
|
126
|
-
// Enter键表示扫码结束
|
|
127
|
-
if (e.key === 'Enter') {
|
|
128
|
-
var trimmedCode = inputBuffer.trim();
|
|
129
|
-
if (trimmedCode.length >= 10) {
|
|
130
|
-
setScanResult({
|
|
131
|
-
type: 'scanner',
|
|
132
|
-
value: trimmedCode
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
inputBuffer = '';
|
|
136
|
-
lastInputTime = 0;
|
|
137
|
-
if (inputTimer) {
|
|
138
|
-
clearTimeout(inputTimer);
|
|
139
|
-
inputTimer = null;
|
|
140
|
-
}
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// 输入间隔 < 30ms 认为是扫码枪
|
|
145
|
-
if (timeDiff < 30 && inputBuffer.length > 0) {
|
|
146
|
-
inputBuffer += e.key;
|
|
147
|
-
} else {
|
|
148
|
-
inputBuffer = e.key;
|
|
149
|
-
}
|
|
150
|
-
lastInputTime = currentTime;
|
|
151
|
-
|
|
152
|
-
// 清除之前的定时器
|
|
153
|
-
if (inputTimer) {
|
|
154
|
-
clearTimeout(inputTimer);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// 100ms 内没有新输入,认为扫码完成
|
|
158
|
-
inputTimer = setTimeout(function () {
|
|
159
|
-
var trimmedCode = inputBuffer.trim();
|
|
160
|
-
if (trimmedCode.length >= 10) {
|
|
161
|
-
setScanResult({
|
|
162
|
-
type: 'scanner',
|
|
163
|
-
value: trimmedCode
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
inputBuffer = '';
|
|
167
|
-
}, 100);
|
|
168
|
-
};
|
|
169
|
-
if (!isNativeEnv) {
|
|
170
|
-
document.addEventListener('keydown', handleKeyDown);
|
|
171
|
-
}
|
|
172
|
-
return function () {
|
|
173
|
-
if (!isNativeEnv) {
|
|
174
|
-
document.removeEventListener('keydown', handleKeyDown);
|
|
175
|
-
}
|
|
176
|
-
if (inputTimer) {
|
|
177
|
-
clearTimeout(inputTimer);
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
}, []);
|
|
181
|
-
return {
|
|
182
|
-
scanResult: scanResult
|
|
183
|
-
};
|
|
184
|
-
};
|
|
@@ -1,196 +0,0 @@
|
|
|
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
|
-
import React, { useEffect, useRef } from 'react';
|
|
8
|
-
import { locales } from '@pisell/utils';
|
|
9
|
-
import "./index.less";
|
|
10
|
-
import { useContextData, updateStatus, updateState } from "../store";
|
|
11
|
-
import { ScanAction } from "./Action";
|
|
12
|
-
import { useMicropay } from "../aggregatePayment";
|
|
13
|
-
import { EPaymentStatus } from "../aggregatePayment/types";
|
|
14
|
-
import { useStoreRef, useFail } from "../hooks";
|
|
15
|
-
import { useDispatch, updateNextStep, updateCustom } from "../store";
|
|
16
|
-
import { ModeEnum, StatusEnum } from "../const";
|
|
17
|
-
import { getPayParams } from "../helper";
|
|
18
|
-
import useEngineContext from "../../../hooks/useEngineContext";
|
|
19
|
-
var Huifu = function Huifu(_ref) {
|
|
20
|
-
var _context$appHelper, _data$custom;
|
|
21
|
-
var isNativeApp = _ref.isNativeApp,
|
|
22
|
-
onChange = _ref.onChange;
|
|
23
|
-
var data = useContextData();
|
|
24
|
-
var context = useEngineContext();
|
|
25
|
-
var _ref2 = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
|
26
|
-
interaction = _ref2.interaction;
|
|
27
|
-
|
|
28
|
-
// 数据源
|
|
29
|
-
var _useStoreRef = useStoreRef(),
|
|
30
|
-
statusRef = _useStoreRef.statusRef,
|
|
31
|
-
numRef = _useStoreRef.numRef,
|
|
32
|
-
netRef = _useStoreRef.netRef,
|
|
33
|
-
modeRef = _useStoreRef.modeRef,
|
|
34
|
-
amountRef = _useStoreRef.amountRef,
|
|
35
|
-
orderIdRef = _useStoreRef.orderIdRef,
|
|
36
|
-
deviceRef = _useStoreRef.deviceRef,
|
|
37
|
-
payRef = _useStoreRef.payRef;
|
|
38
|
-
var dispatch = useDispatch();
|
|
39
|
-
var fail = useFail(0);
|
|
40
|
-
var failRef = useRef(fail);
|
|
41
|
-
|
|
42
|
-
// 当前组件数据
|
|
43
|
-
var initRef = useRef(false);
|
|
44
|
-
var unloadRef = useRef(false);
|
|
45
|
-
var clearRef = useRef(null);
|
|
46
|
-
var payment = useMicropay({
|
|
47
|
-
paymentCode: (data === null || data === void 0 || (_data$custom = data.custom) === null || _data$custom === void 0 ? void 0 : _data$custom.custom_payment_code) || 'EFTPOS_HUIFU',
|
|
48
|
-
paymentNum: numRef.current || '',
|
|
49
|
-
shouldContinue: function shouldContinue() {
|
|
50
|
-
return !(unloadRef.current || !netRef.current);
|
|
51
|
-
},
|
|
52
|
-
callback: function callback(_instance, response) {
|
|
53
|
-
console.log('callback = ', response);
|
|
54
|
-
var _ref3 = response || {},
|
|
55
|
-
status = _ref3.status,
|
|
56
|
-
data = _ref3.data;
|
|
57
|
-
if (status === EPaymentStatus.Success) {
|
|
58
|
-
dispatch(updateNextStep());
|
|
59
|
-
// 将所有步骤状态设为完成 resolve
|
|
60
|
-
dispatch(updateCustom({
|
|
61
|
-
card_reader_surcharge: 0,
|
|
62
|
-
receipt: []
|
|
63
|
-
}));
|
|
64
|
-
// 更新支付状态与文案
|
|
65
|
-
dispatch(updateState({
|
|
66
|
-
status: 'success',
|
|
67
|
-
title: locales.getText('page.eftpos-pay.text.successful')(modeRef.current)
|
|
68
|
-
}));
|
|
69
|
-
clearRef.current = setTimeout(function () {
|
|
70
|
-
var params = getPayParams({
|
|
71
|
-
mode: modeRef.current,
|
|
72
|
-
amount: amountRef.current,
|
|
73
|
-
order_id: orderIdRef.current,
|
|
74
|
-
number: numRef.current,
|
|
75
|
-
device: deviceRef.current,
|
|
76
|
-
pay: payRef.current,
|
|
77
|
-
custom: {
|
|
78
|
-
card_reader_surcharge: 0,
|
|
79
|
-
receipt: []
|
|
80
|
-
}
|
|
81
|
-
}, 'success');
|
|
82
|
-
onChange('success', _objectSpread(_objectSpread({}, params), {}, {
|
|
83
|
-
receipt: []
|
|
84
|
-
}));
|
|
85
|
-
}, 1000);
|
|
86
|
-
} else if (status === EPaymentStatus.Failed) {
|
|
87
|
-
var _failRef$current;
|
|
88
|
-
(_failRef$current = failRef.current) === null || _failRef$current === void 0 || _failRef$current.call(failRef, data, false);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
useEffect(function () {
|
|
93
|
-
failRef.current = fail;
|
|
94
|
-
}, [fail]);
|
|
95
|
-
useEffect(function () {
|
|
96
|
-
if (statusRef.current === StatusEnum.Success || statusRef.current === StatusEnum.Fail) {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
if (initRef.current) {
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
initRef.current = true;
|
|
103
|
-
|
|
104
|
-
// 存在支付流水号
|
|
105
|
-
if (numRef.current) {
|
|
106
|
-
console.log('payment.query');
|
|
107
|
-
payment.query();
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
console.log('data?.custom =>>>> ', data === null || data === void 0 ? void 0 : data.custom);
|
|
111
|
-
// 如果是退款场景,直接进入退款流程
|
|
112
|
-
var isPay = modeRef.current === ModeEnum.Pay || modeRef.current === ModeEnum.FullPay;
|
|
113
|
-
if (!isPay) {
|
|
114
|
-
var _data$custom2;
|
|
115
|
-
payment.run({
|
|
116
|
-
orderPaymentId: data === null || data === void 0 || (_data$custom2 = data.custom) === null || _data$custom2 === void 0 ? void 0 : _data$custom2.order_payment_id
|
|
117
|
-
});
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
}, []);
|
|
121
|
-
useEffect(function () {
|
|
122
|
-
if (isNativeApp && (data === null || data === void 0 ? void 0 : data.status) === StatusEnum.Init) {
|
|
123
|
-
var _interaction$utils, _interaction$utils$po;
|
|
124
|
-
// 如果是原生App调用并且是init状态,则显示关闭按钮
|
|
125
|
-
interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$po = _interaction$utils.postMessageToApp) === null || _interaction$utils$po === void 0 || _interaction$utils$po.call(_interaction$utils, {
|
|
126
|
-
module: 'pos',
|
|
127
|
-
key: 'other',
|
|
128
|
-
data: {
|
|
129
|
-
key: 'show_close_button'
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
}, [isNativeApp, data === null || data === void 0 ? void 0 : data.status]);
|
|
134
|
-
|
|
135
|
-
// 页面卸载处理
|
|
136
|
-
useEffect(function () {
|
|
137
|
-
return function () {
|
|
138
|
-
unloadRef.current = true;
|
|
139
|
-
if (clearRef.current) {
|
|
140
|
-
clearTimeout(clearRef.current);
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
}, []);
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* 更新到加载状态
|
|
147
|
-
*/
|
|
148
|
-
var updateToLoading = function updateToLoading() {
|
|
149
|
-
// 如果是原生App调用,进入加载状态则隐藏关闭按钮
|
|
150
|
-
if (isNativeApp) {
|
|
151
|
-
var _interaction$utils2, _interaction$utils2$p;
|
|
152
|
-
interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || (_interaction$utils2$p = _interaction$utils2.postMessageToApp) === null || _interaction$utils2$p === void 0 || _interaction$utils2$p.call(_interaction$utils2, {
|
|
153
|
-
module: 'pos',
|
|
154
|
-
key: 'other',
|
|
155
|
-
data: {
|
|
156
|
-
key: 'hide_close_button'
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
dispatch(updateStatus(StatusEnum.Loading));
|
|
161
|
-
dispatch(updateState({
|
|
162
|
-
title: locales.getText('page.eftpos-pay.text.loading')(modeRef.current)
|
|
163
|
-
}));
|
|
164
|
-
};
|
|
165
|
-
var onClose = function onClose() {
|
|
166
|
-
onChange('fail', {
|
|
167
|
-
number: data.number,
|
|
168
|
-
uniquePaymentNumber: data.number,
|
|
169
|
-
device: data.device,
|
|
170
|
-
order_id: data.order_id
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
var onPayClick = function onPayClick(scanResult) {
|
|
174
|
-
console.log('scanResult = ', scanResult);
|
|
175
|
-
updateToLoading();
|
|
176
|
-
payment.run({
|
|
177
|
-
authCode: scanResult
|
|
178
|
-
});
|
|
179
|
-
};
|
|
180
|
-
var onScanCallback = function onScanCallback(scanResult) {
|
|
181
|
-
console.log('scanResult = ', scanResult);
|
|
182
|
-
updateToLoading();
|
|
183
|
-
payment.run({
|
|
184
|
-
authCode: scanResult
|
|
185
|
-
});
|
|
186
|
-
};
|
|
187
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, (data === null || data === void 0 ? void 0 : data.status) === StatusEnum.Init && /*#__PURE__*/React.createElement(ScanAction, {
|
|
188
|
-
onClose: onClose,
|
|
189
|
-
onScanCallback: onScanCallback,
|
|
190
|
-
onPayClick: onPayClick,
|
|
191
|
-
isNativeApp: isNativeApp
|
|
192
|
-
}), (data === null || data === void 0 ? void 0 : data.status) === StatusEnum.Loading ? /*#__PURE__*/React.createElement("div", {
|
|
193
|
-
className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip"
|
|
194
|
-
}, locales.getText('page.eftpos-pay.text.processing')) : null);
|
|
195
|
-
};
|
|
196
|
-
export default Huifu;
|