@pisell/private-materials 3.2.12 → 3.2.14
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 +14 -18
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/booking/addons/index.js +7 -5
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/footer/utils.js +1 -3
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/forms/footer.d.ts +7 -0
- package/es/components/booking/forms/footer.js +88 -0
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/index.js +25 -20
- package/es/components/booking/forms/index.less +7 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/index.d.ts +27 -0
- package/es/components/booking/forms/sendModal/index.js +82 -0
- package/es/components/booking/forms/sendModal/index.less +9 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
- package/es/components/{parallelResourceBooking/components/Provider/Cart/ContinueButton/index.js → booking/forms/sendModal/useSendModal.js} +50 -245
- package/es/components/booking/forms/serve.d.ts +9 -0
- package/es/components/booking/forms/serve.js +20 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.js +3 -3
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/index.js +58 -48
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.js +3 -2
- package/es/components/booking/info2/service/addService/utils.js +57 -5
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/editService/Resources/index.js +20 -2
- package/es/components/booking/info2/service/editService/index.js +4 -3
- package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/es/components/booking/info2/service/editService/utils.js +18 -0
- package/es/components/booking/locales.d.ts +39 -0
- package/es/components/booking/locales.js +42 -3
- package/es/components/booking/model.d.ts +1 -9
- 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/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/payo/config.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/es/components/productExtension/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/taxSelect/index.d.ts +0 -1
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/index.d.ts +0 -1
- package/es/index.js +1 -2
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/booking/addons/index.js +7 -5
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/footer/utils.js +1 -3
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/forms/footer.d.ts +7 -0
- package/lib/components/booking/forms/footer.js +81 -0
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/index.js +4 -2
- package/lib/components/booking/forms/index.less +7 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/index.d.ts +27 -0
- package/lib/components/booking/forms/sendModal/index.js +128 -0
- package/lib/components/booking/forms/sendModal/index.less +9 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
- package/lib/components/booking/forms/sendModal/useSendModal.js +70 -0
- package/lib/components/booking/forms/serve.d.ts +9 -0
- package/lib/components/booking/forms/serve.js +5 -2
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.js +2 -2
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/index.js +3 -2
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.js +3 -2
- package/lib/components/booking/info2/service/addService/utils.js +36 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/editService/Resources/index.js +16 -1
- package/lib/components/booking/info2/service/editService/index.js +3 -2
- package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/lib/components/booking/info2/service/editService/utils.js +48 -0
- package/lib/components/booking/locales.d.ts +39 -0
- package/lib/components/booking/locales.js +42 -3
- package/lib/components/booking/model.d.ts +1 -9
- 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/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/lib/components/productExtension/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/taxSelect/index.d.ts +0 -1
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -3
- package/package.json +4 -4
- package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
- package/es/components/parallelResourceBooking/assets/alert-circle.png +0 -0
- package/es/components/parallelResourceBooking/assets/calendar-heart.svg +0 -5
- package/es/components/parallelResourceBooking/assets/compass.svg +0 -13
- package/es/components/parallelResourceBooking/assets/image.svg +0 -5
- package/es/components/parallelResourceBooking/assets/phone.svg +0 -5
- package/es/components/parallelResourceBooking/assets/shopping-cart.svg +0 -10
- package/es/components/parallelResourceBooking/components/ErrorTip/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/ErrorTip/index.js +0 -14
- package/es/components/parallelResourceBooking/components/ErrorTip/index.less +0 -51
- package/es/components/parallelResourceBooking/components/OpenCard/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/OpenCard/index.js +0 -65
- package/es/components/parallelResourceBooking/components/OpenCard/index.less +0 -52
- package/es/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/Total.js +0 -46
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.js +0 -63
- package/es/components/parallelResourceBooking/components/Provider/Cart/Item/index.less +0 -87
- package/es/components/parallelResourceBooking/components/Provider/Cart/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Cart/index.js +0 -30
- package/es/components/parallelResourceBooking/components/Provider/Cart/index.less +0 -2
- package/es/components/parallelResourceBooking/components/Provider/Content/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Content/index.js +0 -65
- package/es/components/parallelResourceBooking/components/Provider/Content/index.less +0 -31
- package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.js +0 -34
- package/es/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/es/components/parallelResourceBooking/components/Provider/Event/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Event/index.js +0 -93
- package/es/components/parallelResourceBooking/components/Provider/Event/index.less +0 -20
- package/es/components/parallelResourceBooking/components/Provider/Footer/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Footer/index.js +0 -76
- package/es/components/parallelResourceBooking/components/Provider/Footer/index.less +0 -64
- package/es/components/parallelResourceBooking/components/Provider/Header/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Header/index.js +0 -75
- package/es/components/parallelResourceBooking/components/Provider/Header/index.less +0 -2
- package/es/components/parallelResourceBooking/components/Provider/Information/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Information/index.js +0 -178
- package/es/components/parallelResourceBooking/components/Provider/Information/index.less +0 -92
- package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.js +0 -34
- package/es/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.js +0 -27
- package/es/components/parallelResourceBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/es/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
- package/es/components/parallelResourceBooking/components/Provider/Resource/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/Provider/Resource/index.js +0 -79
- package/es/components/parallelResourceBooking/components/Provider/Resource/index.less +0 -46
- package/es/components/parallelResourceBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/Provider/SelectHolderModal.js +0 -90
- package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/parallelResourceBooking/components/Provider/SelectProduct/index.less +0 -131
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -26
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -65
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -69
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -152
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -20
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -38
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -28
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -269
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -256
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -173
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.js +0 -36
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.js +0 -38
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.js +0 -33
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/es/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.js +0 -30
- package/es/components/parallelResourceBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/parallelResourceBooking/components/bookingDetailModal/index.js +0 -337
- package/es/components/parallelResourceBooking/components/bookingDetailModal/index.less +0 -82
- package/es/components/parallelResourceBooking/components/bookingServiceList/index.d.ts +0 -17
- package/es/components/parallelResourceBooking/components/bookingServiceList/index.js +0 -52
- package/es/components/parallelResourceBooking/components/bookingServiceList/index.less +0 -6
- package/es/components/parallelResourceBooking/components/eventCard/index.d.ts +0 -14
- package/es/components/parallelResourceBooking/components/eventCard/index.js +0 -116
- package/es/components/parallelResourceBooking/components/eventCard/index.less +0 -81
- package/es/components/parallelResourceBooking/components/productCard/index.d.ts +0 -16
- package/es/components/parallelResourceBooking/components/productCard/index.js +0 -79
- package/es/components/parallelResourceBooking/components/productCard/index.less +0 -60
- package/es/components/parallelResourceBooking/components/progressBar/index.d.ts +0 -16
- package/es/components/parallelResourceBooking/components/progressBar/index.js +0 -93
- package/es/components/parallelResourceBooking/components/progressBar/index.less +0 -15
- package/es/components/parallelResourceBooking/components/resourceDisplay/index.d.ts +0 -23
- package/es/components/parallelResourceBooking/components/resourceDisplay/index.js +0 -148
- package/es/components/parallelResourceBooking/components/resourceDisplay/index.less +0 -95
- package/es/components/parallelResourceBooking/components/resourceUsability/index.d.ts +0 -12
- package/es/components/parallelResourceBooking/components/resourceUsability/index.js +0 -44
- package/es/components/parallelResourceBooking/components/resourceUsability/index.less +0 -40
- package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.js +0 -37
- package/es/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/es/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.d.ts +0 -11
- package/es/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.js +0 -127
- package/es/components/parallelResourceBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/es/components/parallelResourceBooking/components/scheduleCalendar/index.js +0 -142
- package/es/components/parallelResourceBooking/components/scheduleCalendar/index.less +0 -222
- package/es/components/parallelResourceBooking/components/selectHolder/index.d.ts +0 -22
- package/es/components/parallelResourceBooking/components/selectHolder/index.js +0 -118
- package/es/components/parallelResourceBooking/components/selectHolder/index.less +0 -70
- package/es/components/parallelResourceBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/es/components/parallelResourceBooking/components/timeResourceSelector/index.js +0 -168
- package/es/components/parallelResourceBooking/components/timeResourceSelector/index.less +0 -74
- package/es/components/parallelResourceBooking/index.d.ts +0 -3
- package/es/components/parallelResourceBooking/index.js +0 -58
- package/es/components/parallelResourceBooking/index.less +0 -22
- package/es/components/parallelResourceBooking/locales.d.ts +0 -216
- package/es/components/parallelResourceBooking/locales.js +0 -251
- package/es/components/parallelResourceBooking/mock.d.ts +0 -627
- package/es/components/parallelResourceBooking/mock.js +0 -1172
- package/es/components/parallelResourceBooking/status.d.ts +0 -21
- package/es/components/parallelResourceBooking/status.js +0 -51
- package/es/components/parallelResourceBooking/type.d.ts +0 -17
- package/es/components/parallelResourceBooking/type.js +0 -1
- package/es/components/parallelResourceBooking/utils.d.ts +0 -45
- package/es/components/parallelResourceBooking/utils.js +0 -99
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/parallelResourceBooking/assets/alert-circle.png +0 -0
- package/lib/components/parallelResourceBooking/assets/calendar-heart.svg +0 -5
- package/lib/components/parallelResourceBooking/assets/compass.svg +0 -13
- package/lib/components/parallelResourceBooking/assets/image.svg +0 -5
- package/lib/components/parallelResourceBooking/assets/phone.svg +0 -5
- package/lib/components/parallelResourceBooking/assets/shopping-cart.svg +0 -10
- package/lib/components/parallelResourceBooking/components/ErrorTip/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/ErrorTip/index.js +0 -30
- package/lib/components/parallelResourceBooking/components/ErrorTip/index.less +0 -51
- package/lib/components/parallelResourceBooking/components/OpenCard/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/OpenCard/index.js +0 -90
- package/lib/components/parallelResourceBooking/components/OpenCard/index.less +0 -52
- package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.js +0 -158
- package/lib/components/parallelResourceBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/Total.js +0 -82
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.js +0 -92
- package/lib/components/parallelResourceBooking/components/Provider/Cart/Item/index.less +0 -87
- package/lib/components/parallelResourceBooking/components/Provider/Cart/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Cart/index.js +0 -59
- package/lib/components/parallelResourceBooking/components/Provider/Cart/index.less +0 -2
- package/lib/components/parallelResourceBooking/components/Provider/Content/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Content/index.js +0 -90
- package/lib/components/parallelResourceBooking/components/Provider/Content/index.less +0 -31
- package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.js +0 -60
- package/lib/components/parallelResourceBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/lib/components/parallelResourceBooking/components/Provider/Event/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Event/index.js +0 -100
- package/lib/components/parallelResourceBooking/components/Provider/Event/index.less +0 -20
- package/lib/components/parallelResourceBooking/components/Provider/Footer/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Footer/index.js +0 -87
- package/lib/components/parallelResourceBooking/components/Provider/Footer/index.less +0 -64
- package/lib/components/parallelResourceBooking/components/Provider/Header/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Header/index.js +0 -80
- package/lib/components/parallelResourceBooking/components/Provider/Header/index.less +0 -2
- package/lib/components/parallelResourceBooking/components/Provider/Information/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Information/index.js +0 -151
- package/lib/components/parallelResourceBooking/components/Provider/Information/index.less +0 -92
- package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.js +0 -67
- package/lib/components/parallelResourceBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.js +0 -57
- package/lib/components/parallelResourceBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/lib/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
- package/lib/components/parallelResourceBooking/components/Provider/Resource/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/Provider/Resource/index.js +0 -90
- package/lib/components/parallelResourceBooking/components/Provider/Resource/index.less +0 -46
- package/lib/components/parallelResourceBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/Provider/SelectHolderModal.js +0 -97
- package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/parallelResourceBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -55
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -10
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -78
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -86
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -12
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -121
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -37
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -58
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -55
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -196
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -198
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -122
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.js +0 -70
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/parallelResourceBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/BookingOptions.js +0 -75
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Resource.js +0 -66
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/components/Schedule.js +0 -69
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.js +0 -248
- package/lib/components/parallelResourceBooking/components/bookingDetailModal/index.less +0 -82
- package/lib/components/parallelResourceBooking/components/bookingServiceList/index.d.ts +0 -17
- package/lib/components/parallelResourceBooking/components/bookingServiceList/index.js +0 -79
- package/lib/components/parallelResourceBooking/components/bookingServiceList/index.less +0 -6
- package/lib/components/parallelResourceBooking/components/eventCard/index.d.ts +0 -14
- package/lib/components/parallelResourceBooking/components/eventCard/index.js +0 -124
- package/lib/components/parallelResourceBooking/components/eventCard/index.less +0 -81
- package/lib/components/parallelResourceBooking/components/productCard/index.d.ts +0 -16
- package/lib/components/parallelResourceBooking/components/productCard/index.js +0 -77
- package/lib/components/parallelResourceBooking/components/productCard/index.less +0 -60
- package/lib/components/parallelResourceBooking/components/progressBar/index.d.ts +0 -16
- package/lib/components/parallelResourceBooking/components/progressBar/index.js +0 -100
- package/lib/components/parallelResourceBooking/components/progressBar/index.less +0 -15
- package/lib/components/parallelResourceBooking/components/resourceDisplay/index.d.ts +0 -23
- package/lib/components/parallelResourceBooking/components/resourceDisplay/index.js +0 -116
- package/lib/components/parallelResourceBooking/components/resourceDisplay/index.less +0 -95
- package/lib/components/parallelResourceBooking/components/resourceUsability/index.d.ts +0 -12
- package/lib/components/parallelResourceBooking/components/resourceUsability/index.js +0 -76
- package/lib/components/parallelResourceBooking/components/resourceUsability/index.less +0 -40
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.js +0 -73
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.d.ts +0 -11
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/calendarItem.js +0 -135
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.js +0 -125
- package/lib/components/parallelResourceBooking/components/scheduleCalendar/index.less +0 -222
- package/lib/components/parallelResourceBooking/components/selectHolder/index.d.ts +0 -22
- package/lib/components/parallelResourceBooking/components/selectHolder/index.js +0 -106
- package/lib/components/parallelResourceBooking/components/selectHolder/index.less +0 -70
- package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.js +0 -146
- package/lib/components/parallelResourceBooking/components/timeResourceSelector/index.less +0 -74
- package/lib/components/parallelResourceBooking/index.d.ts +0 -3
- package/lib/components/parallelResourceBooking/index.js +0 -78
- package/lib/components/parallelResourceBooking/index.less +0 -22
- package/lib/components/parallelResourceBooking/locales.d.ts +0 -216
- package/lib/components/parallelResourceBooking/locales.js +0 -239
- package/lib/components/parallelResourceBooking/mock.d.ts +0 -627
- package/lib/components/parallelResourceBooking/mock.js +0 -1352
- package/lib/components/parallelResourceBooking/status.d.ts +0 -21
- package/lib/components/parallelResourceBooking/status.js +0 -70
- package/lib/components/parallelResourceBooking/type.d.ts +0 -17
- package/lib/components/parallelResourceBooking/type.js +0 -17
- package/lib/components/parallelResourceBooking/utils.d.ts +0 -45
- package/lib/components/parallelResourceBooking/utils.js +0 -90
- package/lowcode/parallel-resource-booking/meta.ts +0 -69
|
@@ -8,267 +8,72 @@ 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
|
|
11
|
+
import { useState } from 'react';
|
|
12
|
+
import { message } from '@pisell/materials';
|
|
12
13
|
import { locales } from '@pisell/utils';
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
import { formatValues } from "../../../../../Sales/Checkout/utils";
|
|
16
|
-
import OrderProductModal from "../../OrderProductModal/index";
|
|
17
|
-
import EmptyHolderModal from "../../EmptyHolderModal";
|
|
18
|
-
import "./index.less";
|
|
19
|
-
var ContinueButton = function ContinueButton() {
|
|
20
|
-
var _cartData$cartItems;
|
|
21
|
-
var _useSales = useSales(),
|
|
22
|
-
data = _useSales.data;
|
|
23
|
-
var _useHolder = useHolder(),
|
|
24
|
-
onHolderOpen = _useHolder.onHolderOpen;
|
|
25
|
-
var _useCart = useCart(),
|
|
26
|
-
checkHolder = _useCart.checkHolder,
|
|
27
|
-
onCloseCart = _useCart.onCloseCart,
|
|
28
|
-
cartData = _useCart.cartData,
|
|
29
|
-
getWithoutCartItemsHolderNames = _useCart.getWithoutCartItemsHolderNames;
|
|
30
|
-
var _useStep = useStep(),
|
|
31
|
-
currentStepData = _useStep.currentStepData,
|
|
32
|
-
nextStep = _useStep.nextStep,
|
|
33
|
-
isLastStep = _useStep.isLastStep;
|
|
34
|
-
var _useCheckout = useCheckout(),
|
|
35
|
-
onCheckout = _useCheckout.onCheckout,
|
|
36
|
-
createBooking = _useCheckout.createBooking,
|
|
37
|
-
onCheckBeforeBooking = _useCheckout.onCheckBeforeBooking,
|
|
38
|
-
checkBeforeBooking = _useCheckout.checkBeforeBooking;
|
|
39
|
-
var _useCustomer = useCustomer(),
|
|
40
|
-
openLoginModal = _useCustomer.openLoginModal,
|
|
41
|
-
isLogin = _useCustomer.isLogin;
|
|
42
|
-
|
|
43
|
-
// 下单之前是否检测失败
|
|
14
|
+
import { sendFormReminder } from "../serve";
|
|
15
|
+
var useSendModal = function useSendModal(bookingId) {
|
|
44
16
|
var _useState = useState(false),
|
|
45
17
|
_useState2 = _slicedToArray(_useState, 2),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
var _useSales2 = useSales(),
|
|
58
|
-
removeSessionStorage = _useSales2.removeSessionStorage;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @title: 下单
|
|
62
|
-
* @description:
|
|
63
|
-
* @return {*}
|
|
64
|
-
* @Author: WangHan
|
|
65
|
-
* @Date: 2025-02-10 17:54
|
|
66
|
-
*/
|
|
67
|
-
var handleCheckout = /*#__PURE__*/function () {
|
|
68
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
69
|
-
var value, result, _result$err;
|
|
18
|
+
open = _useState2[0],
|
|
19
|
+
setOpen = _useState2[1];
|
|
20
|
+
var handleOpen = function handleOpen() {
|
|
21
|
+
setOpen(true);
|
|
22
|
+
};
|
|
23
|
+
var handleValuesChange = function handleValuesChange(val) {
|
|
24
|
+
console.log(val, 'val');
|
|
25
|
+
};
|
|
26
|
+
var handleOk = /*#__PURE__*/function () {
|
|
27
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(values) {
|
|
28
|
+
var value;
|
|
70
29
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
71
30
|
while (1) switch (_context.prev = _context.next) {
|
|
72
31
|
case 0:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
return onCheckout(value);
|
|
76
|
-
case 3:
|
|
77
|
-
result = _context.sent;
|
|
78
|
-
// 清空数据
|
|
79
|
-
if (result !== null && result !== void 0 && result.success) {
|
|
80
|
-
removeSessionStorage();
|
|
81
|
-
} else {
|
|
82
|
-
PisellToast({
|
|
83
|
-
content: (result === null || result === void 0 || (_result$err = result.err) === null || _result$err === void 0 ? void 0 : _result$err.message) || ''
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
case 5:
|
|
87
|
-
case "end":
|
|
88
|
-
return _context.stop();
|
|
89
|
-
}
|
|
90
|
-
}, _callee);
|
|
91
|
-
}));
|
|
92
|
-
return function handleCheckout() {
|
|
93
|
-
return _ref.apply(this, arguments);
|
|
94
|
-
};
|
|
95
|
-
}();
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @title: 下一步
|
|
99
|
-
* @description:
|
|
100
|
-
* @return {*}
|
|
101
|
-
* @Author: WangHan
|
|
102
|
-
* @Date: 2025-02-08 18:57
|
|
103
|
-
*/
|
|
104
|
-
var handleNextStep = /*#__PURE__*/function () {
|
|
105
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
106
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
107
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
108
|
-
case 0:
|
|
109
|
-
onCloseCart();
|
|
110
|
-
setOpenEmptyHolder(false);
|
|
111
|
-
|
|
112
|
-
// 如果当前是确认信息页面,则到结算页面
|
|
113
|
-
if (!isLastStep) {
|
|
114
|
-
_context2.next = 4;
|
|
32
|
+
if (!(!values.sendSms && !values.sendEmail)) {
|
|
33
|
+
_context.next = 2;
|
|
115
34
|
break;
|
|
116
35
|
}
|
|
117
|
-
return
|
|
118
|
-
case
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
case "end":
|
|
122
|
-
return _context2.stop();
|
|
123
|
-
}
|
|
124
|
-
}, _callee2);
|
|
125
|
-
}));
|
|
126
|
-
return function handleNextStep() {
|
|
127
|
-
return _ref2.apply(this, arguments);
|
|
128
|
-
};
|
|
129
|
-
}();
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* @title: 判断是打开holder弹窗还是进行下一步
|
|
133
|
-
* @description:
|
|
134
|
-
* @return {*}
|
|
135
|
-
* @Author: WangHan
|
|
136
|
-
* @Date: 2025-02-08 14:00
|
|
137
|
-
*/
|
|
138
|
-
var handleHolder = function handleHolder() {
|
|
139
|
-
var isHolder = checkHolder();
|
|
140
|
-
// 如果没有绑定holder,则打开绑定holder弹窗
|
|
141
|
-
if (!isHolder) {
|
|
142
|
-
onHolderOpen();
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// 验证holder是否为空
|
|
147
|
-
var emptyHolders = getWithoutCartItemsHolderNames();
|
|
148
|
-
if ((emptyHolders === null || emptyHolders === void 0 ? void 0 : emptyHolders.length) > 0) {
|
|
149
|
-
return setOpenEmptyHolder(true);
|
|
150
|
-
}
|
|
151
|
-
handleNextStep();
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* @title: 点击继续
|
|
156
|
-
* @description:
|
|
157
|
-
* @return {*}
|
|
158
|
-
* @Author: WangHan
|
|
159
|
-
* @Date: 2025-01-16 16:30
|
|
160
|
-
*/
|
|
161
|
-
var handleContinue = /*#__PURE__*/function () {
|
|
162
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
163
|
-
var value, checkRes, emptyHolders;
|
|
164
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
165
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
166
|
-
case 0:
|
|
167
|
-
if (!isLastStep) {
|
|
168
|
-
_context3.next = 14;
|
|
36
|
+
return _context.abrupt("return", message.error(locales.getText('pisell2.text.send-form-reminder-error-message')));
|
|
37
|
+
case 2:
|
|
38
|
+
if (!(values.sendSms && !values.phone.phone)) {
|
|
39
|
+
_context.next = 4;
|
|
169
40
|
break;
|
|
170
41
|
}
|
|
171
|
-
|
|
172
|
-
_context3.next = 4;
|
|
173
|
-
return onCheckBeforeBooking(value);
|
|
42
|
+
return _context.abrupt("return", message.error(locales.getText('pisell2.text.phone-required-error-message')));
|
|
174
43
|
case 4:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
_context3.next = 9;
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
setCheckedNumber(checkRes === null || checkRes === void 0 ? void 0 : checkRes.num);
|
|
181
|
-
setOpenCheckout(true);
|
|
182
|
-
return _context3.abrupt("return");
|
|
183
|
-
case 9:
|
|
184
|
-
// 验证holder是否为空
|
|
185
|
-
emptyHolders = getWithoutCartItemsHolderNames();
|
|
186
|
-
if (!((emptyHolders === null || emptyHolders === void 0 ? void 0 : emptyHolders.length) > 0)) {
|
|
187
|
-
_context3.next = 12;
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
return _context3.abrupt("return", setOpenEmptyHolder(true));
|
|
191
|
-
case 12:
|
|
192
|
-
// 关闭购物车弹窗
|
|
193
|
-
onCloseCart();
|
|
194
|
-
return _context3.abrupt("return", handleCheckout());
|
|
195
|
-
case 14:
|
|
196
|
-
if (isLogin()) {
|
|
197
|
-
_context3.next = 17;
|
|
44
|
+
if (!(values.sendEmail && !values.email)) {
|
|
45
|
+
_context.next = 6;
|
|
198
46
|
break;
|
|
199
47
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
48
|
+
return _context.abrupt("return", message.error(locales.getText('pisell2.text.email-required-error-message')));
|
|
49
|
+
case 6:
|
|
50
|
+
_context.next = 8;
|
|
51
|
+
return sendFormReminder({
|
|
52
|
+
phone: values.sendSms ? values.phone.phone : undefined,
|
|
53
|
+
email: values.sendEmail ? values.email : undefined,
|
|
54
|
+
order_id: bookingId,
|
|
55
|
+
country_calling_code: values.sendSms ? values.phone.code.replace('+', '') : undefined
|
|
56
|
+
});
|
|
57
|
+
case 8:
|
|
58
|
+
value = _context.sent;
|
|
59
|
+
message.success(locales.getText('pisell2.text.send-form-toast'));
|
|
60
|
+
setOpen(false);
|
|
61
|
+
case 11:
|
|
211
62
|
case "end":
|
|
212
|
-
return
|
|
63
|
+
return _context.stop();
|
|
213
64
|
}
|
|
214
|
-
},
|
|
65
|
+
}, _callee);
|
|
215
66
|
}));
|
|
216
|
-
return function
|
|
217
|
-
return
|
|
67
|
+
return function handleOk(_x) {
|
|
68
|
+
return _ref.apply(this, arguments);
|
|
218
69
|
};
|
|
219
70
|
}();
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
* @Date: 2025-01-17 16:10
|
|
228
|
-
*/
|
|
229
|
-
var continueText = useMemo(function () {
|
|
230
|
-
if (isLastStep) {
|
|
231
|
-
return locales.getText('pisell2.event.checkout');
|
|
232
|
-
} else {
|
|
233
|
-
return locales.getText('pisell2.event.close.continue');
|
|
234
|
-
}
|
|
235
|
-
}, [currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key]);
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* @title: 确认按钮loading
|
|
239
|
-
* @description:
|
|
240
|
-
* @param {*} useMemo
|
|
241
|
-
* @return {*}
|
|
242
|
-
* @Author: WangHan
|
|
243
|
-
* @Date: 2025-01-21 23:03
|
|
244
|
-
*/
|
|
245
|
-
var confirmLoading = useMemo(function () {
|
|
246
|
-
if (!isLastStep) return false;
|
|
247
|
-
return (createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading) || (checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading);
|
|
248
|
-
}, [isLastStep, createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading, checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading]);
|
|
249
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
250
|
-
disabled: !(cartData !== null && cartData !== void 0 && (_cartData$cartItems = cartData.cartItems) !== null && _cartData$cartItems !== void 0 && _cartData$cartItems.length),
|
|
251
|
-
size: "large",
|
|
252
|
-
type: "primary",
|
|
253
|
-
onClick: function onClick() {
|
|
254
|
-
return handleContinue();
|
|
255
|
-
},
|
|
256
|
-
loading: confirmLoading
|
|
257
|
-
}, continueText), /*#__PURE__*/React.createElement(OrderProductModal, {
|
|
258
|
-
open: openCheckout,
|
|
259
|
-
type: "checkout",
|
|
260
|
-
onCancel: function onCancel() {
|
|
261
|
-
return setOpenCheckout(false);
|
|
262
|
-
}
|
|
263
|
-
}), /*#__PURE__*/React.createElement(EmptyHolderModal, {
|
|
264
|
-
open: openEmptyHolder,
|
|
265
|
-
lists: getWithoutCartItemsHolderNames(),
|
|
266
|
-
onCancel: function onCancel() {
|
|
267
|
-
return setOpenEmptyHolder(false);
|
|
268
|
-
},
|
|
269
|
-
onOk: function onOk() {
|
|
270
|
-
return handleNextStep();
|
|
271
|
-
}
|
|
272
|
-
}));
|
|
71
|
+
return {
|
|
72
|
+
open: open,
|
|
73
|
+
setOpen: setOpen,
|
|
74
|
+
handleOpen: handleOpen,
|
|
75
|
+
handleValuesChange: handleValuesChange,
|
|
76
|
+
handleOk: handleOk
|
|
77
|
+
};
|
|
273
78
|
};
|
|
274
|
-
export default
|
|
79
|
+
export default useSendModal;
|
|
@@ -7,3 +7,12 @@ export declare const getFormData: (params: {
|
|
|
7
7
|
num: number;
|
|
8
8
|
skip: number;
|
|
9
9
|
}) => Promise<any>;
|
|
10
|
+
/**
|
|
11
|
+
* 发送表单填写提醒
|
|
12
|
+
*/
|
|
13
|
+
export declare const sendFormReminder: (params: {
|
|
14
|
+
email?: string;
|
|
15
|
+
phone?: string;
|
|
16
|
+
order_id: number;
|
|
17
|
+
country_calling_code?: string;
|
|
18
|
+
}) => Promise<any>;
|
|
@@ -22,4 +22,24 @@ export var getFormData = /*#__PURE__*/function () {
|
|
|
22
22
|
return function getFormData(_x) {
|
|
23
23
|
return _ref.apply(this, arguments);
|
|
24
24
|
};
|
|
25
|
+
}();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 发送表单填写提醒
|
|
29
|
+
*/
|
|
30
|
+
export var sendFormReminder = /*#__PURE__*/function () {
|
|
31
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
|
|
32
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
34
|
+
case 0:
|
|
35
|
+
return _context2.abrupt("return", request.getRequest().post("/shop/form/form-reminder", params));
|
|
36
|
+
case 1:
|
|
37
|
+
case "end":
|
|
38
|
+
return _context2.stop();
|
|
39
|
+
}
|
|
40
|
+
}, _callee2);
|
|
41
|
+
}));
|
|
42
|
+
return function sendFormReminder(_x2) {
|
|
43
|
+
return _ref2.apply(this, arguments);
|
|
44
|
+
};
|
|
25
45
|
}();
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FormState } from '../model';
|
|
3
1
|
export declare const walkInData: {
|
|
4
2
|
id: number;
|
|
5
3
|
nickname: string;
|
|
6
4
|
};
|
|
7
|
-
export declare const Provider:
|
|
8
|
-
state: FormState;
|
|
9
|
-
} & {
|
|
10
|
-
dispatch: (params: {
|
|
11
|
-
type: string;
|
|
12
|
-
payload: any;
|
|
13
|
-
}) => void;
|
|
14
|
-
}>;
|
|
5
|
+
export declare const Provider: any, Context: any;
|
|
@@ -335,14 +335,14 @@ var Info = function Info(props) {
|
|
|
335
335
|
customer_id: customerId
|
|
336
336
|
},
|
|
337
337
|
callback: function () {
|
|
338
|
-
var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e) {
|
|
338
|
+
var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e, extension_type, detail) {
|
|
339
339
|
var data;
|
|
340
340
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
341
341
|
while (1) switch (_context3.prev = _context3.next) {
|
|
342
342
|
case 0:
|
|
343
343
|
_context3.next = 2;
|
|
344
344
|
return createBookingData({
|
|
345
|
-
product: _objectSpread(_objectSpread({}, item), {}, {
|
|
345
|
+
product: _objectSpread(_objectSpread({}, detail || item), {}, {
|
|
346
346
|
_params: e
|
|
347
347
|
})
|
|
348
348
|
});
|
|
@@ -358,7 +358,7 @@ var Info = function Info(props) {
|
|
|
358
358
|
}
|
|
359
359
|
}, _callee3);
|
|
360
360
|
}));
|
|
361
|
-
function callback(_x3) {
|
|
361
|
+
function callback(_x3, _x4, _x5) {
|
|
362
362
|
return _callback.apply(this, arguments);
|
|
363
363
|
}
|
|
364
364
|
return callback;
|
|
@@ -677,49 +677,59 @@ var Info = function Info(_, ref) {
|
|
|
677
677
|
value: _objectSpread(_objectSpread({}, ((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.other) || {}), dayValue),
|
|
678
678
|
customer_id: isDayBookingMode ? ((_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id) || 1 : undefined
|
|
679
679
|
},
|
|
680
|
-
callback: function
|
|
681
|
-
var
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
680
|
+
callback: function () {
|
|
681
|
+
var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(e, extension_type, detail) {
|
|
682
|
+
var _cacheItem$_extend;
|
|
683
|
+
var _detail, cacheItem, _total, _cacheItem$_extend2;
|
|
684
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
685
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
686
|
+
case 0:
|
|
687
|
+
_detail = detail || item; // 重新生成商品
|
|
688
|
+
cacheItem = _objectSpread(_objectSpread({}, _detail), {}, {
|
|
689
|
+
product_id: item.id,
|
|
690
|
+
_id: item === null || item === void 0 ? void 0 : item._id,
|
|
691
|
+
_key: e.key,
|
|
692
|
+
_extend: _objectSpread(_objectSpread(_objectSpread({}, item._extend), values), {}, {
|
|
693
|
+
// 覆盖选择的规格和套餐
|
|
694
|
+
other: JSON.parse(JSON.stringify(e))
|
|
695
|
+
}),
|
|
696
|
+
new: 0
|
|
697
|
+
}); // 获取商品总价
|
|
698
|
+
_total = getProductTotalPrice(cacheItem); // 如果有多规格,则更新商品的单价
|
|
699
|
+
if (cacheItem !== null && cacheItem !== void 0 && (_cacheItem$_extend = cacheItem._extend) !== null && _cacheItem$_extend !== void 0 && (_cacheItem$_extend = _cacheItem$_extend.other) !== null && _cacheItem$_extend !== void 0 && _cacheItem$_extend.product_variant_id) {
|
|
700
|
+
cacheItem._extend.price = Number((_cacheItem$_extend2 = cacheItem._extend) === null || _cacheItem$_extend2 === void 0 || (_cacheItem$_extend2 = _cacheItem$_extend2.other) === null || _cacheItem$_extend2 === void 0 ? void 0 : _cacheItem$_extend2.price);
|
|
701
|
+
}
|
|
702
702
|
|
|
703
|
-
|
|
704
|
-
|
|
703
|
+
// 用于折扣 可修改
|
|
704
|
+
cacheItem._extend.total = _total;
|
|
705
705
|
|
|
706
|
-
|
|
707
|
-
|
|
706
|
+
// 用于储存原价
|
|
707
|
+
cacheItem._extend.origin_total = _total;
|
|
708
708
|
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
709
|
+
// 覆盖商品
|
|
710
|
+
dispatch({
|
|
711
|
+
type: 'setService',
|
|
712
|
+
payload: {
|
|
713
|
+
cacheItem: cacheItem
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
setTimeout(function () {
|
|
717
|
+
updateMultiDay({
|
|
718
|
+
start_date: values.start_date,
|
|
719
|
+
end_date: values.end_date
|
|
720
|
+
});
|
|
721
|
+
}, 100);
|
|
722
|
+
case 8:
|
|
723
|
+
case "end":
|
|
724
|
+
return _context4.stop();
|
|
725
|
+
}
|
|
726
|
+
}, _callee4);
|
|
727
|
+
}));
|
|
728
|
+
function callback(_x4, _x5, _x6) {
|
|
729
|
+
return _callback.apply(this, arguments);
|
|
730
|
+
}
|
|
731
|
+
return callback;
|
|
732
|
+
}()
|
|
723
733
|
});
|
|
724
734
|
});
|
|
725
735
|
|
|
@@ -782,13 +792,13 @@ var Info = function Info(_, ref) {
|
|
|
782
792
|
* @Date: 2024-12-29 23:17
|
|
783
793
|
*/
|
|
784
794
|
var updateMultiDay = /*#__PURE__*/function () {
|
|
785
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
795
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(_ref6) {
|
|
786
796
|
var start_date, end_date, duration, cacheItem, fieldsValues;
|
|
787
|
-
return _regeneratorRuntime().wrap(function
|
|
788
|
-
while (1) switch (
|
|
797
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
798
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
789
799
|
case 0:
|
|
790
800
|
start_date = _ref6.start_date, end_date = _ref6.end_date, duration = _ref6.duration;
|
|
791
|
-
|
|
801
|
+
_context5.next = 3;
|
|
792
802
|
return getMultiDay({
|
|
793
803
|
start_date: start_date,
|
|
794
804
|
end_date: end_date,
|
|
@@ -796,7 +806,7 @@ var Info = function Info(_, ref) {
|
|
|
796
806
|
cacheItem: getCurrentCacheItem()
|
|
797
807
|
});
|
|
798
808
|
case 3:
|
|
799
|
-
cacheItem =
|
|
809
|
+
cacheItem = _context5.sent;
|
|
800
810
|
// 兼容时长为空的情况
|
|
801
811
|
if (duration !== undefined) {
|
|
802
812
|
cacheItem._extend.duration = duration;
|
|
@@ -816,11 +826,11 @@ var Info = function Info(_, ref) {
|
|
|
816
826
|
form.setFieldsValue(fieldsValues);
|
|
817
827
|
case 10:
|
|
818
828
|
case "end":
|
|
819
|
-
return
|
|
829
|
+
return _context5.stop();
|
|
820
830
|
}
|
|
821
|
-
},
|
|
831
|
+
}, _callee5);
|
|
822
832
|
}));
|
|
823
|
-
return function updateMultiDay(
|
|
833
|
+
return function updateMultiDay(_x7) {
|
|
824
834
|
return _ref7.apply(this, arguments);
|
|
825
835
|
};
|
|
826
836
|
}();
|
|
@@ -237,4 +237,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
|
237
237
|
* @Author: WangHan
|
|
238
238
|
* @Date: 2024-12-24 11:32
|
|
239
239
|
*/
|
|
240
|
-
export declare const updateServicePrice: (state: any) => Promise<any
|
|
240
|
+
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
|
@@ -255,14 +255,15 @@ var Info = function Info(props) {
|
|
|
255
255
|
setTimeout(function () {
|
|
256
256
|
lock = false;
|
|
257
257
|
}, 2000);
|
|
258
|
-
var
|
|
258
|
+
var _detail = detail || item;
|
|
259
|
+
var cacheItem = _objectSpread(_objectSpread({}, _detail), {}, {
|
|
259
260
|
product_id: item.id,
|
|
260
261
|
_id: getUniqueId(),
|
|
261
262
|
_key: e.key,
|
|
262
263
|
_extend: {
|
|
263
264
|
start_date: state.date.value,
|
|
264
265
|
quantity: 1,
|
|
265
|
-
price:
|
|
266
|
+
price: _detail.price,
|
|
266
267
|
product_name: item.title,
|
|
267
268
|
other: JSON.parse(JSON.stringify(e))
|
|
268
269
|
},
|