@pisell/private-materials 3.4.3 → 3.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +13 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +4 -4
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/Sales/Cart/index.js +5 -1
- package/es/components/Sales/Cart/utils.d.ts +40 -0
- package/es/components/Sales/Cart/utils.js +187 -0
- package/es/components/Sales/Checkout/index.d.ts +4 -0
- package/es/components/Sales/Checkout/index.js +52 -8
- package/es/components/Sales/Checkout/serve.d.ts +13 -0
- package/es/components/Sales/Checkout/serve.js +16 -2
- package/es/components/Sales/Checkout/utils.d.ts +1 -0
- package/es/components/Sales/Checkout/utils.js +9 -2
- package/es/components/Sales/Customer/index.d.ts +25 -0
- package/es/components/Sales/Event/Detail.d.ts +1 -0
- package/es/components/Sales/Event/Detail.js +45 -11
- package/es/components/Sales/Event/serve.d.ts +10 -0
- package/es/components/Sales/Event/serve.js +25 -0
- package/es/components/Sales/Summary/index.d.ts +10 -0
- package/es/components/Sales/Summary/index.js +17 -2
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/serve.js +6 -0
- package/es/components/Sales/Summary/utils.d.ts +15 -0
- package/es/components/Sales/Summary/utils.js +43 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/es/components/appointmentBooking/components/Content/index.js +15 -1
- package/es/components/appointmentBooking/components/Content/index.less +1 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Resource/index.js +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
- package/es/components/appointmentBooking/deposit/index.js +4 -2
- package/es/components/appointmentBooking/index.js +14 -0
- package/es/components/appointmentBooking/index.less +1 -1
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/footer/index.js +32 -24
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
- package/es/components/booking/hooks/useIsBooking4Shop.js +4 -3
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.js +2 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/index.js +4 -4
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/Lists.d.ts +2 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/utils.d.ts +1 -1
- package/es/components/booking/info/utils.js +5 -3
- package/es/components/booking/info2/service/addService/utils.js +38 -9
- package/es/components/booking/info2/service/addTimeModal/index.js +2 -2
- package/es/components/booking/info2/service/index.d.ts +4 -0
- package/es/components/booking/info2/utils.d.ts +4 -0
- package/es/components/booking/info2/utilsByBooking.js +9 -3
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -17
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/index.js +6 -3
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/index.js +14 -0
- package/es/components/eventBooking/index.less +1 -1
- package/es/components/eventBooking/locales.d.ts +24 -0
- package/es/components/eventBooking/locales.js +27 -3
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +18 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +7 -2
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
- 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/StripeSDK/index.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 +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +18 -3
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +113 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/locales.d.ts +3 -0
- package/es/components/pay/toC/locales.js +3 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pay/toC/utils.d.ts +57 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.d.ts +4 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +4 -4
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/menuBar/index.js +38 -2
- package/es/components/ticketBooking/components/menuBar/index.less +8 -0
- package/es/components/ticketBooking/locales.d.ts +174 -0
- package/es/components/ticketBooking/locales.js +6 -3
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/useComponents.js +1 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/Sales/Cart/index.js +1 -0
- package/lib/components/Sales/Cart/utils.d.ts +40 -0
- package/lib/components/Sales/Cart/utils.js +129 -0
- package/lib/components/Sales/Checkout/index.d.ts +4 -0
- package/lib/components/Sales/Checkout/index.js +39 -7
- package/lib/components/Sales/Checkout/serve.d.ts +13 -0
- package/lib/components/Sales/Checkout/serve.js +7 -2
- package/lib/components/Sales/Checkout/utils.d.ts +1 -0
- package/lib/components/Sales/Checkout/utils.js +5 -2
- package/lib/components/Sales/Customer/index.d.ts +25 -0
- package/lib/components/Sales/Event/Detail.d.ts +1 -0
- package/lib/components/Sales/Event/Detail.js +37 -12
- package/lib/components/Sales/Event/serve.d.ts +10 -0
- package/lib/components/Sales/Event/serve.js +7 -0
- package/lib/components/Sales/Summary/index.d.ts +10 -0
- package/lib/components/Sales/Summary/index.js +7 -1
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/serve.js +32 -0
- package/lib/components/Sales/Summary/utils.d.ts +15 -0
- package/lib/components/Sales/Summary/utils.js +30 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/lib/components/appointmentBooking/components/Content/index.js +6 -1
- package/lib/components/appointmentBooking/components/Content/index.less +1 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
- package/lib/components/appointmentBooking/deposit/index.js +4 -2
- package/lib/components/appointmentBooking/index.js +11 -0
- package/lib/components/appointmentBooking/index.less +1 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +24 -11
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
- package/lib/components/booking/hooks/useIsBooking4Shop.js +6 -4
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.js +3 -2
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/index.js +4 -3
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/Lists.d.ts +2 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/utils.d.ts +1 -1
- package/lib/components/booking/info/utils.js +5 -3
- package/lib/components/booking/info2/service/addService/utils.js +31 -10
- package/lib/components/booking/info2/service/addTimeModal/index.js +3 -2
- package/lib/components/booking/info2/service/index.d.ts +4 -0
- package/lib/components/booking/info2/utils.d.ts +4 -0
- package/lib/components/booking/info2/utilsByBooking.js +4 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +16 -4
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +4 -3
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/index.js +11 -0
- package/lib/components/eventBooking/index.less +1 -1
- package/lib/components/eventBooking/locales.d.ts +24 -0
- package/lib/components/eventBooking/locales.js +27 -3
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +13 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +2 -2
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
- 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/StripeSDK/index.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 +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +13 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +113 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/locales.d.ts +3 -0
- package/lib/components/pay/toC/locales.js +3 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pay/toC/utils.d.ts +57 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +4 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -6
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -2
- package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
- package/lib/components/ticketBooking/locales.d.ts +174 -0
- package/lib/components/ticketBooking/locales.js +6 -3
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/utils/index.d.ts +1 -1
- package/package.json +3 -3
|
@@ -71,6 +71,14 @@ declare const _default: {
|
|
|
71
71
|
'pisell2.event.capacity.limit.reached.tip': string;
|
|
72
72
|
'pisell2.event.schedule.item.expand': string;
|
|
73
73
|
'pisell2.event.schedule.item.collapse': string;
|
|
74
|
+
'pisell2.appointment.deposit': string;
|
|
75
|
+
'pisell2.appointment.deposit.agreed': string;
|
|
76
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
|
77
|
+
'pisell2.appointment.deposit.and': string;
|
|
78
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
|
79
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
|
80
|
+
'pisell2.appointment.deposit.close': string;
|
|
81
|
+
'pisell2.appointment.booking.empty.data': string;
|
|
74
82
|
};
|
|
75
83
|
'zh-CN': {
|
|
76
84
|
'pisell2.event.calendar.limit.unavailable': string;
|
|
@@ -144,6 +152,14 @@ declare const _default: {
|
|
|
144
152
|
'pisell2.event.capacity.limit.reached.tip': string;
|
|
145
153
|
'pisell2.event.schedule.item.expand': string;
|
|
146
154
|
'pisell2.event.schedule.item.collapse': string;
|
|
155
|
+
'pisell2.appointment.deposit': string;
|
|
156
|
+
'pisell2.appointment.deposit.agreed': string;
|
|
157
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
|
158
|
+
'pisell2.appointment.deposit.and': string;
|
|
159
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
|
160
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
|
161
|
+
'pisell2.appointment.deposit.close': string;
|
|
162
|
+
'pisell2.appointment.booking.empty.data': string;
|
|
147
163
|
};
|
|
148
164
|
'zh-HK': {
|
|
149
165
|
'pisell2.event.calendar.limit.unavailable': string;
|
|
@@ -217,6 +233,14 @@ declare const _default: {
|
|
|
217
233
|
'pisell2.event.capacity.limit.reached.tip': string;
|
|
218
234
|
'pisell2.event.schedule.item.expand': string;
|
|
219
235
|
'pisell2.event.schedule.item.collapse': string;
|
|
236
|
+
'pisell2.appointment.deposit': string;
|
|
237
|
+
'pisell2.appointment.deposit.agreed': string;
|
|
238
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
|
239
|
+
'pisell2.appointment.deposit.and': string;
|
|
240
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
|
241
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
|
242
|
+
'pisell2.appointment.deposit.close': string;
|
|
243
|
+
'pisell2.appointment.booking.empty.data': string;
|
|
220
244
|
};
|
|
221
245
|
};
|
|
222
246
|
export default _default;
|
|
@@ -82,7 +82,15 @@ export default {
|
|
|
82
82
|
'pisell2.event.capacity.limit.reached.title': 'Capacity limit reached',
|
|
83
83
|
'pisell2.event.capacity.limit.reached.tip': 'One or more events in your cart are no longer available due to full capacity. Please remove unavailable events from your cart to complete checkout.',
|
|
84
84
|
'pisell2.event.schedule.item.expand': 'See more',
|
|
85
|
-
'pisell2.event.schedule.item.collapse': 'See less'
|
|
85
|
+
'pisell2.event.schedule.item.collapse': 'See less',
|
|
86
|
+
'pisell2.appointment.deposit': 'Deposit',
|
|
87
|
+
'pisell2.appointment.deposit.agreed': 'I have read and agree to the ',
|
|
88
|
+
'pisell2.appointment.deposit.agree.policy': 'You need to agree the policy to proceed',
|
|
89
|
+
'pisell2.appointment.deposit.and': ' & ',
|
|
90
|
+
'pisell2.appointment.deposit.amount.tip1': ' needs to be paid as deposit.',
|
|
91
|
+
'pisell2.appointment.deposit.amount.tip2': ' ',
|
|
92
|
+
'pisell2.appointment.deposit.close': 'Close',
|
|
93
|
+
'pisell2.appointment.booking.empty.data': 'No data'
|
|
86
94
|
},
|
|
87
95
|
'zh-CN': {
|
|
88
96
|
'pisell2.event.calendar.limit.unavailable': '不可预约',
|
|
@@ -167,7 +175,15 @@ export default {
|
|
|
167
175
|
'pisell2.event.capacity.limit.reached.title': '活动名额已满',
|
|
168
176
|
'pisell2.event.capacity.limit.reached.tip': '购物车中有一个或多个活动已达预约上限,请将已满额的活动从购物车中移除后再完成结算。',
|
|
169
177
|
'pisell2.event.schedule.item.expand': '查看更多',
|
|
170
|
-
'pisell2.event.schedule.item.collapse': '收起'
|
|
178
|
+
'pisell2.event.schedule.item.collapse': '收起',
|
|
179
|
+
'pisell2.appointment.deposit': '定金',
|
|
180
|
+
'pisell2.appointment.deposit.agreed': '我已阅读并同意 ',
|
|
181
|
+
'pisell2.appointment.deposit.agree.policy': '您需要同意协议才能继续',
|
|
182
|
+
'pisell2.appointment.deposit.and': ' 和 ',
|
|
183
|
+
'pisell2.appointment.deposit.amount.tip1': '请支付 ',
|
|
184
|
+
'pisell2.appointment.deposit.amount.tip2': ' 定金。',
|
|
185
|
+
'pisell2.appointment.deposit.close': '关闭',
|
|
186
|
+
'pisell2.appointment.booking.empty.data': '暂无数据'
|
|
171
187
|
},
|
|
172
188
|
'zh-HK': {
|
|
173
189
|
'pisell2.event.calendar.limit.unavailable': '不可預約',
|
|
@@ -252,6 +268,14 @@ export default {
|
|
|
252
268
|
'pisell2.event.capacity.limit.reached.title': '活動名額已滿',
|
|
253
269
|
'pisell2.event.capacity.limit.reached.tip': '購物車中有一個或多個活動已達預約上限,請將已滿額的活動從購物車中移除後再完成結算。',
|
|
254
270
|
'pisell2.event.schedule.item.expand': '查看更多',
|
|
255
|
-
'pisell2.event.schedule.item.collapse': '收起'
|
|
271
|
+
'pisell2.event.schedule.item.collapse': '收起',
|
|
272
|
+
'pisell2.appointment.deposit': '定金',
|
|
273
|
+
'pisell2.appointment.deposit.agreed': '我已閱讀並同意 ',
|
|
274
|
+
'pisell2.appointment.deposit.agree.policy': '您需要同意協議才能繼續',
|
|
275
|
+
'pisell2.appointment.deposit.and': ' 和 ',
|
|
276
|
+
'pisell2.appointment.deposit.amount.tip1': '請支付 ',
|
|
277
|
+
'pisell2.appointment.deposit.amount.tip2': ' 定金。',
|
|
278
|
+
'pisell2.appointment.deposit.close': '关闭',
|
|
279
|
+
'pisell2.appointment.booking.empty.data': '暫無數據'
|
|
256
280
|
}
|
|
257
281
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
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(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
8
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
9
|
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); }
|
|
@@ -8,11 +8,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
8
8
|
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; }
|
|
9
9
|
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; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
import React, { useState, useImperativeHandle, forwardRef } from 'react';
|
|
11
|
+
import React, { useState, useImperativeHandle, forwardRef, useContext } from 'react';
|
|
12
12
|
import { PisellModal } from '@pisell/materials';
|
|
13
13
|
import { locales } from '@pisell/utils';
|
|
14
14
|
import ThreedsLoading from "../MWCreditCard/TDSPay/ThreedsLoading";
|
|
15
15
|
import { getAliPayUrl } from "./serve";
|
|
16
|
+
import { Context } from "../../model";
|
|
16
17
|
import { getPayGroupParamsFromStorage, setPayNumber } from "../../payGroup";
|
|
17
18
|
import "./index.less";
|
|
18
19
|
/**
|
|
@@ -23,11 +24,17 @@ import "./index.less";
|
|
|
23
24
|
* @Date: 2024-08-16 11:18
|
|
24
25
|
*/
|
|
25
26
|
var GlobePayAliPayH5 = function GlobePayAliPayH5(props, ref) {
|
|
27
|
+
var _useContext = useContext(Context),
|
|
28
|
+
state = _useContext.state;
|
|
26
29
|
var onChange = props.onChange;
|
|
27
30
|
var _useState = useState(false),
|
|
28
31
|
_useState2 = _slicedToArray(_useState, 2),
|
|
29
32
|
open = _useState2[0],
|
|
30
33
|
setOpen = _useState2[1];
|
|
34
|
+
var _useState3 = useState(false),
|
|
35
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
36
|
+
showSuccessBackButton = _useState4[0],
|
|
37
|
+
setShowSuccessBackButton = _useState4[1];
|
|
31
38
|
|
|
32
39
|
/**
|
|
33
40
|
* @title: 初始化
|
|
@@ -64,7 +71,7 @@ var GlobePayAliPayH5 = function GlobePayAliPayH5(props, ref) {
|
|
|
64
71
|
if (url) {
|
|
65
72
|
// 设置交易号
|
|
66
73
|
setPayNumber(payGroup === null || payGroup === void 0 ? void 0 : payGroup.order_id, data === null || data === void 0 ? void 0 : data.pay_number);
|
|
67
|
-
|
|
74
|
+
setShowSuccessBackButton(true);
|
|
68
75
|
// 跳转
|
|
69
76
|
window.location.href = url;
|
|
70
77
|
} else {
|
|
@@ -91,6 +98,12 @@ var GlobePayAliPayH5 = function GlobePayAliPayH5(props, ref) {
|
|
|
91
98
|
init: init
|
|
92
99
|
};
|
|
93
100
|
});
|
|
101
|
+
var handleSuccessBack = function handleSuccessBack() {
|
|
102
|
+
var _state$payCallback;
|
|
103
|
+
(_state$payCallback = state.payCallback) === null || _state$payCallback === void 0 || _state$payCallback.call(state, {
|
|
104
|
+
key: 'success'
|
|
105
|
+
});
|
|
106
|
+
};
|
|
94
107
|
return /*#__PURE__*/React.createElement(PisellModal, {
|
|
95
108
|
platform: 'h5',
|
|
96
109
|
open: open,
|
|
@@ -103,7 +116,9 @@ var GlobePayAliPayH5 = function GlobePayAliPayH5(props, ref) {
|
|
|
103
116
|
}, /*#__PURE__*/React.createElement("div", {
|
|
104
117
|
className: ""
|
|
105
118
|
}, /*#__PURE__*/React.createElement(ThreedsLoading, {
|
|
106
|
-
title: locales.getText('tocPay.text.redirectingToAlipay')
|
|
119
|
+
title: locales.getText('tocPay.text.redirectingToAlipay'),
|
|
120
|
+
onSuccessBack: handleSuccessBack,
|
|
121
|
+
showSuccessBackButton: showSuccessBackButton
|
|
107
122
|
})));
|
|
108
123
|
};
|
|
109
124
|
export default /*#__PURE__*/forwardRef(GlobePayAliPayH5);
|
|
@@ -4,7 +4,9 @@ import "./index.less";
|
|
|
4
4
|
import { locales } from '@pisell/utils';
|
|
5
5
|
var ThreedsLoading = function ThreedsLoading(_ref) {
|
|
6
6
|
var _context$appHelper;
|
|
7
|
-
var title = _ref.title
|
|
7
|
+
var title = _ref.title,
|
|
8
|
+
showSuccessBackButton = _ref.showSuccessBackButton,
|
|
9
|
+
onSuccessBack = _ref.onSuccessBack;
|
|
8
10
|
var context = useEngineContext();
|
|
9
11
|
var _ref2 = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.constants) || {},
|
|
10
12
|
config = _ref2.config;
|
|
@@ -16,6 +18,9 @@ var ThreedsLoading = function ThreedsLoading(_ref) {
|
|
|
16
18
|
alt: ""
|
|
17
19
|
}), /*#__PURE__*/React.createElement("div", {
|
|
18
20
|
className: 'threeds-loading-title'
|
|
19
|
-
}, title || locales.getText('tocPay.text.waitingForBankVerification'))
|
|
21
|
+
}, title || locales.getText('tocPay.text.waitingForBankVerification')), showSuccessBackButton && /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
onClick: onSuccessBack,
|
|
23
|
+
className: "threeds-loading-success-back-button"
|
|
24
|
+
}, locales.getText('tocPay.text.successBack')));
|
|
20
25
|
};
|
|
21
26
|
export default ThreedsLoading;
|
|
@@ -8,11 +8,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
8
8
|
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; }
|
|
9
9
|
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; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
import React, { useState, useImperativeHandle, forwardRef } from 'react';
|
|
11
|
+
import React, { useState, useImperativeHandle, forwardRef, useContext } from 'react';
|
|
12
12
|
import { PisellModal } from '@pisell/materials';
|
|
13
13
|
import { locales } from '@pisell/utils';
|
|
14
14
|
import ThreedsLoading from "../MWCreditCard/TDSPay/ThreedsLoading";
|
|
15
15
|
import { getAliPayUrl } from "./serve";
|
|
16
|
+
import { Context } from "../../model";
|
|
16
17
|
import { getPayGroupParamsFromStorage, setPayNumber } from "../../payGroup";
|
|
17
18
|
import "./index.less";
|
|
18
19
|
import useEngineContext from "../../../../../hooks/useEngineContext";
|
|
@@ -26,11 +27,17 @@ import { clientPayment } from "../../utils";
|
|
|
26
27
|
*/
|
|
27
28
|
var SuperPayAliPayH5 = function SuperPayAliPayH5(props, ref) {
|
|
28
29
|
var _context$appHelper;
|
|
30
|
+
var _useContext = useContext(Context),
|
|
31
|
+
state = _useContext.state;
|
|
29
32
|
var onChange = props.onChange;
|
|
30
33
|
var _useState = useState(false),
|
|
31
34
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32
35
|
open = _useState2[0],
|
|
33
36
|
setOpen = _useState2[1];
|
|
37
|
+
var _useState3 = useState(false),
|
|
38
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
39
|
+
showSuccessBackButton = _useState4[0],
|
|
40
|
+
setShowSuccessBackButton = _useState4[1];
|
|
34
41
|
var context = useEngineContext();
|
|
35
42
|
var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
|
|
36
43
|
interaction = _context$appHelper$ut.interaction;
|
|
@@ -80,7 +87,7 @@ var SuperPayAliPayH5 = function SuperPayAliPayH5(props, ref) {
|
|
|
80
87
|
if (data !== null && data !== void 0 && data.pay_url) {
|
|
81
88
|
// 设置交易号
|
|
82
89
|
setPayNumber(payGroup === null || payGroup === void 0 ? void 0 : payGroup.order_id, data === null || data === void 0 ? void 0 : data.pay_number);
|
|
83
|
-
|
|
90
|
+
setShowSuccessBackButton(true);
|
|
84
91
|
// 跳转
|
|
85
92
|
window.location.href = data === null || data === void 0 ? void 0 : data.pay_url;
|
|
86
93
|
} else {
|
|
@@ -107,6 +114,12 @@ var SuperPayAliPayH5 = function SuperPayAliPayH5(props, ref) {
|
|
|
107
114
|
init: init
|
|
108
115
|
};
|
|
109
116
|
});
|
|
117
|
+
var handleSuccessBack = function handleSuccessBack() {
|
|
118
|
+
var _state$payCallback;
|
|
119
|
+
(_state$payCallback = state.payCallback) === null || _state$payCallback === void 0 || _state$payCallback.call(state, {
|
|
120
|
+
key: 'success'
|
|
121
|
+
});
|
|
122
|
+
};
|
|
110
123
|
return /*#__PURE__*/React.createElement(PisellModal, {
|
|
111
124
|
platform: 'h5',
|
|
112
125
|
open: open,
|
|
@@ -119,7 +132,9 @@ var SuperPayAliPayH5 = function SuperPayAliPayH5(props, ref) {
|
|
|
119
132
|
}, /*#__PURE__*/React.createElement("div", {
|
|
120
133
|
className: ""
|
|
121
134
|
}, /*#__PURE__*/React.createElement(ThreedsLoading, {
|
|
122
|
-
title: locales.getText('tocPay.text.redirectingToAlipay')
|
|
135
|
+
title: locales.getText('tocPay.text.redirectingToAlipay'),
|
|
136
|
+
onSuccessBack: handleSuccessBack,
|
|
137
|
+
showSuccessBackButton: showSuccessBackButton
|
|
123
138
|
})));
|
|
124
139
|
};
|
|
125
140
|
export default /*#__PURE__*/forwardRef(SuperPayAliPayH5);
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export declare type MachineCodeListParams = {
|
|
2
|
+
order_id: number | string;
|
|
3
|
+
available: number;
|
|
4
|
+
prepare_payments: {
|
|
5
|
+
voucher_id: number;
|
|
6
|
+
amount: number;
|
|
7
|
+
tag: string;
|
|
8
|
+
}[];
|
|
9
|
+
filter_prepare_wallet_pass: 1 | 0;
|
|
10
|
+
sale_channel: string;
|
|
11
|
+
other_exact_codes?: string[];
|
|
12
|
+
};
|
|
13
|
+
export declare type WalletPassDataType = {
|
|
14
|
+
id: number;
|
|
15
|
+
shop_id: number;
|
|
16
|
+
customer_id: number;
|
|
17
|
+
code: string;
|
|
18
|
+
encoded: string;
|
|
19
|
+
status: string;
|
|
20
|
+
cover: string;
|
|
21
|
+
tag: string;
|
|
22
|
+
relation_type: string;
|
|
23
|
+
product_id: number;
|
|
24
|
+
limit_status: string;
|
|
25
|
+
sales_status: number;
|
|
26
|
+
par_value: string;
|
|
27
|
+
used_par_value: string;
|
|
28
|
+
start_date: string;
|
|
29
|
+
expire_date: string;
|
|
30
|
+
end_time: string;
|
|
31
|
+
start_time: string;
|
|
32
|
+
created_at: string;
|
|
33
|
+
product_name: string;
|
|
34
|
+
expire_time: string;
|
|
35
|
+
available_max_par_value: string;
|
|
36
|
+
available_max_amount: string;
|
|
37
|
+
recommended_usage_amount: string;
|
|
38
|
+
custom_expire_status: number;
|
|
39
|
+
wallet_pass_usage_unit: WalletPassUsageUnit;
|
|
40
|
+
custom_order_deduct_exhausted: number;
|
|
41
|
+
available_product_status: number;
|
|
42
|
+
available_product_ids: any[];
|
|
43
|
+
available_product_type: string;
|
|
44
|
+
available_num: number;
|
|
45
|
+
available_product_title: string;
|
|
46
|
+
unified_available_status: number;
|
|
47
|
+
unified_messages: UnifiedMessages;
|
|
48
|
+
external_card: any[];
|
|
49
|
+
product: Product;
|
|
50
|
+
shop: Shop;
|
|
51
|
+
wallet_pass_usage?: any;
|
|
52
|
+
balance_par_value: string;
|
|
53
|
+
};
|
|
54
|
+
declare type Shop = {
|
|
55
|
+
id: number;
|
|
56
|
+
name: string;
|
|
57
|
+
default_url: string;
|
|
58
|
+
};
|
|
59
|
+
declare type Product = {
|
|
60
|
+
id: number;
|
|
61
|
+
title: string;
|
|
62
|
+
cover: string;
|
|
63
|
+
is_charge_tax: number;
|
|
64
|
+
};
|
|
65
|
+
declare type UnifiedMessages = {
|
|
66
|
+
title: string;
|
|
67
|
+
desc: string;
|
|
68
|
+
alert: string;
|
|
69
|
+
};
|
|
70
|
+
declare type WalletPassUsageUnit = {
|
|
71
|
+
price: number;
|
|
72
|
+
points: number;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* 查询支付识别码列表
|
|
76
|
+
*/
|
|
77
|
+
export declare const getMachineCodeList: (params: MachineCodeListParams) => Promise<WalletPassDataType[]>;
|
|
78
|
+
/**
|
|
79
|
+
* 获取推荐的支付识别码
|
|
80
|
+
*/
|
|
81
|
+
export declare const getRecommendMachineCodeList: (order_id: number) => Promise<WalletPassDataType[]>;
|
|
82
|
+
/**
|
|
83
|
+
* 搜索支付识别码
|
|
84
|
+
*/
|
|
85
|
+
export declare const searchMachineCodeList: (params: {
|
|
86
|
+
order_id: number | string;
|
|
87
|
+
code: string;
|
|
88
|
+
sale_channel: string;
|
|
89
|
+
prepare_payments: {
|
|
90
|
+
voucher_id: number;
|
|
91
|
+
amount: number;
|
|
92
|
+
tag: string;
|
|
93
|
+
}[];
|
|
94
|
+
filter_prepare_wallet_pass: 1 | 0;
|
|
95
|
+
}) => Promise<WalletPassDataType[]>;
|
|
96
|
+
/**
|
|
97
|
+
* walletpass支付
|
|
98
|
+
*/
|
|
99
|
+
export declare const walletPassPay: (params: {
|
|
100
|
+
order_id: number | string;
|
|
101
|
+
payment_group_id: number;
|
|
102
|
+
payments: {
|
|
103
|
+
amount: string;
|
|
104
|
+
wallet_pass_use_value: string;
|
|
105
|
+
voucher_id: number;
|
|
106
|
+
tag: string;
|
|
107
|
+
wallet_pass_usage_unit: {
|
|
108
|
+
price: number;
|
|
109
|
+
points: number;
|
|
110
|
+
};
|
|
111
|
+
}[];
|
|
112
|
+
}) => Promise<WalletPassDataType[]>;
|
|
113
|
+
export {};
|
|
@@ -35,6 +35,7 @@ declare const _default: {
|
|
|
35
35
|
'tocPay.text.done': string;
|
|
36
36
|
'tocPay.text.manageCard': string;
|
|
37
37
|
'tocPay.text.waitingForBankVerification': string;
|
|
38
|
+
'tocPay.text.successBack': string;
|
|
38
39
|
'tocPay.text.redirectingToAlipay': string;
|
|
39
40
|
'tocPay.text.redirectingToPaypal': string;
|
|
40
41
|
'tocPay.text.redirectingToWeChatPay': string;
|
|
@@ -130,6 +131,7 @@ declare const _default: {
|
|
|
130
131
|
'tocPay.text.done': string;
|
|
131
132
|
'tocPay.text.manageCard': string;
|
|
132
133
|
'tocPay.text.waitingForBankVerification': string;
|
|
134
|
+
'tocPay.text.successBack': string;
|
|
133
135
|
'tocPay.text.redirectingToAlipay': string;
|
|
134
136
|
'tocPay.text.redirectingToPaypal': string;
|
|
135
137
|
'tocPay.text.redirectingToWeChatPay': string;
|
|
@@ -224,6 +226,7 @@ declare const _default: {
|
|
|
224
226
|
'tocPay.text.done': string;
|
|
225
227
|
'tocPay.text.manageCard': string;
|
|
226
228
|
'tocPay.text.waitingForBankVerification': string;
|
|
229
|
+
'tocPay.text.successBack': string;
|
|
227
230
|
'tocPay.text.redirectingToAlipay': string;
|
|
228
231
|
'tocPay.text.redirectingToPaypal': string;
|
|
229
232
|
'tocPay.text.redirectingToWeChatPay': string;
|
|
@@ -35,6 +35,7 @@ export default {
|
|
|
35
35
|
'tocPay.text.done': 'Done',
|
|
36
36
|
'tocPay.text.manageCard': 'Manage card',
|
|
37
37
|
'tocPay.text.waitingForBankVerification': 'Waiting for bank verification, please wait for 5-10 seconds. You may be redirected to the card issuing bank’s verification page to authorize this payment.',
|
|
38
|
+
'tocPay.text.successBack': 'Payment completed, return to order',
|
|
38
39
|
'tocPay.text.redirectingToAlipay': 'Redirecting to Alipay, please wait...',
|
|
39
40
|
'tocPay.text.redirectingToPaypal': 'Redirecting to Paypal, please wait...',
|
|
40
41
|
'tocPay.text.redirectingToWeChatPay': 'Redirecting to WeChat Pay, please wait...',
|
|
@@ -150,6 +151,7 @@ export default {
|
|
|
150
151
|
'tocPay.text.done': '完成',
|
|
151
152
|
'tocPay.text.manageCard': '管理卡片',
|
|
152
153
|
'tocPay.text.waitingForBankVerification': '正在等待银行校验,请静候5-10秒左右。您可能被转入开卡行的持卡人校验页面来授权本次支付。',
|
|
154
|
+
'tocPay.text.successBack': '已支付完成返回查看订单',
|
|
153
155
|
'tocPay.text.redirectingToAlipay': '正在转入支付宝支付,请稍候...',
|
|
154
156
|
'tocPay.text.redirectingToPaypal': '正在转入Paypal支付,请稍候...',
|
|
155
157
|
'tocPay.text.redirectingToWeChatPay': '正在转入微信支付,请稍候...',
|
|
@@ -264,6 +266,7 @@ export default {
|
|
|
264
266
|
'tocPay.text.done': '完成',
|
|
265
267
|
'tocPay.text.manageCard': '管理卡片',
|
|
266
268
|
'tocPay.text.waitingForBankVerification': '正在等待銀行校驗,請靜候5-10秒左右。您可能被轉入開卡行的持卡人校驗頁面來授權本次支付。',
|
|
269
|
+
'tocPay.text.successBack': '已支付完成返回查看訂單',
|
|
267
270
|
'tocPay.text.redirectingToAlipay': '正在轉入支付寶支付,請稍候...',
|
|
268
271
|
'tocPay.text.redirectingToPaypal': '正在轉入Paypal支付,請稍候...',
|
|
269
272
|
'tocPay.text.redirectingToWeChatPay': '正在轉入微信支付,請稍候...',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
3
4
|
order: any;
|
|
@@ -28,4 +29,11 @@ export interface PayGroup {
|
|
|
28
29
|
pay_number?: string;
|
|
29
30
|
_order: any;
|
|
30
31
|
}
|
|
31
|
-
export declare const Provider: any, Context:
|
|
32
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
33
|
+
state: FormState;
|
|
34
|
+
} & {
|
|
35
|
+
dispatch: (params: {
|
|
36
|
+
type: string;
|
|
37
|
+
payload: any;
|
|
38
|
+
}) => void;
|
|
39
|
+
}>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { PayGroup } from "./model";
|
|
2
|
+
import { WalletPassDataType } from "./PaymentMethods/WalletPass/serve";
|
|
3
|
+
/**
|
|
4
|
+
* 计算walletPass列表数据的总金额
|
|
5
|
+
* @param list
|
|
6
|
+
*/
|
|
7
|
+
export declare const calcWalletPassListAmount: (list: any[]) => any;
|
|
8
|
+
/**
|
|
9
|
+
* 将walletPass列表数据转换为prepare_payments需要的数据格式
|
|
10
|
+
* @param list
|
|
11
|
+
*/
|
|
12
|
+
export declare const formatWalletPassList2PreparePayments: (list?: any[]) => {
|
|
13
|
+
voucher_id: any;
|
|
14
|
+
amount: number;
|
|
15
|
+
tag: any;
|
|
16
|
+
}[];
|
|
17
|
+
/**
|
|
18
|
+
* walletPass支付params
|
|
19
|
+
* @param payGroup
|
|
20
|
+
*/
|
|
21
|
+
export declare const formatWalletPassParams: (payGroup: PayGroup) => {
|
|
22
|
+
order_id: string;
|
|
23
|
+
payment_group_id: number;
|
|
24
|
+
payments: {
|
|
25
|
+
amount: string;
|
|
26
|
+
wallet_pass_use_value: any;
|
|
27
|
+
voucher_id: any;
|
|
28
|
+
tag: any;
|
|
29
|
+
wallet_pass_usage_unit: any;
|
|
30
|
+
}[];
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @title: 获取是否walletPass和三方支付的组合支付
|
|
34
|
+
* @description: 三方支付 (stripe 支付宝 微信 苹果 谷歌)
|
|
35
|
+
* @return: *
|
|
36
|
+
* @Author: shengjie.zuo
|
|
37
|
+
* @Date: 2024-08-30 10:06:17
|
|
38
|
+
*/
|
|
39
|
+
export declare const getIsWalletPassAndTripartitePayment: (payGroup: PayGroup) => boolean | 0 | undefined;
|
|
40
|
+
export declare const isFranchiseeShop: (path?: any, history?: any) => any;
|
|
41
|
+
/**
|
|
42
|
+
* @title: 获取当前连锁加盟店铺shopid
|
|
43
|
+
* @description:
|
|
44
|
+
* @param {any} param1
|
|
45
|
+
* @return {*}
|
|
46
|
+
* @Author: chensheng.gu
|
|
47
|
+
* @Date: 2024-08-07 10:04
|
|
48
|
+
*/
|
|
49
|
+
export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
|
|
50
|
+
export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
|
|
51
|
+
export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
|
|
52
|
+
export declare const clientPayment: (params: {
|
|
53
|
+
order_id: number;
|
|
54
|
+
type: "aliPay" | "wxPay";
|
|
55
|
+
values: any;
|
|
56
|
+
interaction?: any;
|
|
57
|
+
}) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
function _typeof(
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
2
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
-
function _toPropertyKey(
|
|
4
|
-
function _toPrimitive(
|
|
3
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
4
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
import "./index.less";
|
|
@@ -6,7 +6,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
6
6
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
7
|
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); }
|
|
8
8
|
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; }
|
|
9
|
-
function _iterableToArrayLimit(
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
import React, { useEffect, useState } from "react";
|
|
12
12
|
import { Form, InputNumber, Select } from "antd";
|