@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
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/booking/forms/sendModal/useSendModal.ts
|
|
20
|
+
var useSendModal_exports = {};
|
|
21
|
+
__export(useSendModal_exports, {
|
|
22
|
+
default: () => useSendModal_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(useSendModal_exports);
|
|
25
|
+
var import_react = require("react");
|
|
26
|
+
var import_materials = require("@pisell/materials");
|
|
27
|
+
var import_utils = require("@pisell/utils");
|
|
28
|
+
var import_serve = require("../serve");
|
|
29
|
+
var useSendModal = (bookingId) => {
|
|
30
|
+
const [open, setOpen] = (0, import_react.useState)(false);
|
|
31
|
+
const handleOpen = () => {
|
|
32
|
+
setOpen(true);
|
|
33
|
+
};
|
|
34
|
+
const handleValuesChange = (val) => {
|
|
35
|
+
console.log(val, "val");
|
|
36
|
+
};
|
|
37
|
+
const handleOk = async (values) => {
|
|
38
|
+
if (!values.sendSms && !values.sendEmail) {
|
|
39
|
+
return import_materials.message.error(
|
|
40
|
+
import_utils.locales.getText("pisell2.text.send-form-reminder-error-message")
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
if (values.sendSms && !values.phone.phone) {
|
|
44
|
+
return import_materials.message.error(
|
|
45
|
+
import_utils.locales.getText("pisell2.text.phone-required-error-message")
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
if (values.sendEmail && !values.email) {
|
|
49
|
+
return import_materials.message.error(
|
|
50
|
+
import_utils.locales.getText("pisell2.text.email-required-error-message")
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
const value = await (0, import_serve.sendFormReminder)({
|
|
54
|
+
phone: values.sendSms ? values.phone.phone : void 0,
|
|
55
|
+
email: values.sendEmail ? values.email : void 0,
|
|
56
|
+
order_id: bookingId,
|
|
57
|
+
country_calling_code: values.sendSms ? values.phone.code.replace("+", "") : void 0
|
|
58
|
+
});
|
|
59
|
+
import_materials.message.success(import_utils.locales.getText("pisell2.text.send-form-toast"));
|
|
60
|
+
setOpen(false);
|
|
61
|
+
};
|
|
62
|
+
return {
|
|
63
|
+
open,
|
|
64
|
+
setOpen,
|
|
65
|
+
handleOpen,
|
|
66
|
+
handleValuesChange,
|
|
67
|
+
handleOk
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
var useSendModal_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>;
|
|
@@ -19,12 +19,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/components/booking/forms/serve.ts
|
|
20
20
|
var serve_exports = {};
|
|
21
21
|
__export(serve_exports, {
|
|
22
|
-
getFormData: () => getFormData
|
|
22
|
+
getFormData: () => getFormData,
|
|
23
|
+
sendFormReminder: () => sendFormReminder
|
|
23
24
|
});
|
|
24
25
|
module.exports = __toCommonJS(serve_exports);
|
|
25
26
|
var import_utils = require("../utils");
|
|
26
27
|
var getFormData = async (params) => import_utils.request.getRequest().get(`/shop/form/data/v1`, params);
|
|
28
|
+
var sendFormReminder = async (params) => import_utils.request.getRequest().post(`/shop/form/form-reminder`, params);
|
|
27
29
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
30
|
0 && (module.exports = {
|
|
29
|
-
getFormData
|
|
31
|
+
getFormData,
|
|
32
|
+
sendFormReminder
|
|
30
33
|
});
|
|
@@ -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;
|
|
@@ -245,9 +245,9 @@ var Info = (props) => {
|
|
|
245
245
|
is_eject: isEject ? 1 : 0,
|
|
246
246
|
customer_id: customerId
|
|
247
247
|
},
|
|
248
|
-
callback: async (e) => {
|
|
248
|
+
callback: async (e, extension_type, detail) => {
|
|
249
249
|
const data = await createBookingData({
|
|
250
|
-
product: { ...item, _params: e }
|
|
250
|
+
product: { ...detail || item, _params: e }
|
|
251
251
|
});
|
|
252
252
|
createBooking({ booking: data });
|
|
253
253
|
}
|
|
@@ -423,10 +423,11 @@ var Info = (_, ref) => {
|
|
|
423
423
|
},
|
|
424
424
|
customer_id: isDayBookingMode ? ((_h2 = (_g2 = state.client) == null ? void 0 : _g2.value) == null ? void 0 : _h2.id) || 1 : void 0
|
|
425
425
|
},
|
|
426
|
-
callback: (e2) => {
|
|
426
|
+
callback: async (e2, extension_type, detail) => {
|
|
427
427
|
var _a3, _b3, _c3, _d3;
|
|
428
|
+
const _detail = detail || item;
|
|
428
429
|
let cacheItem = {
|
|
429
|
-
...
|
|
430
|
+
..._detail,
|
|
430
431
|
product_id: item.id,
|
|
431
432
|
_id: item == null ? void 0 : item._id,
|
|
432
433
|
_key: e2.key,
|
|
@@ -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>;
|
|
@@ -202,15 +202,16 @@ var Info = (props) => {
|
|
|
202
202
|
setTimeout(() => {
|
|
203
203
|
lock = false;
|
|
204
204
|
}, 2e3);
|
|
205
|
+
const _detail = detail || item;
|
|
205
206
|
let cacheItem = {
|
|
206
|
-
...
|
|
207
|
+
..._detail,
|
|
207
208
|
product_id: item.id,
|
|
208
209
|
_id: (0, import_utils4.getUniqueId)(),
|
|
209
210
|
_key: e.key,
|
|
210
211
|
_extend: {
|
|
211
212
|
start_date: state.date.value,
|
|
212
213
|
quantity: 1,
|
|
213
|
-
price:
|
|
214
|
+
price: _detail.price,
|
|
214
215
|
product_name: item.title,
|
|
215
216
|
other: JSON.parse(JSON.stringify(e))
|
|
216
217
|
},
|
|
@@ -45,6 +45,7 @@ var import_utilsByBooking = require("../../utilsByBooking");
|
|
|
45
45
|
var import_dayjs = __toESM(require("dayjs"));
|
|
46
46
|
var import_utils2 = require("@pisell/utils");
|
|
47
47
|
var import_AlertTriangle = __toESM(require("@pisell/icon/es/AlertTriangle"));
|
|
48
|
+
var import_utils3 = require("../editService/utils");
|
|
48
49
|
var import_mock = require("../../../mock");
|
|
49
50
|
var getUsableTime = (cacheItem) => {
|
|
50
51
|
try {
|
|
@@ -191,12 +192,43 @@ var formatResources = ({ cacheItem, resourcesOrigin }) => {
|
|
|
191
192
|
maps: []
|
|
192
193
|
};
|
|
193
194
|
};
|
|
195
|
+
var getResourceMaxFreeTime = (resource) => {
|
|
196
|
+
const { renderList, form_id } = resource;
|
|
197
|
+
if (!(0, import_utils3.getAutoAllocationStorage)(form_id)) {
|
|
198
|
+
return [];
|
|
199
|
+
}
|
|
200
|
+
const usableList = renderList.filter((d) => d.usable && d.id !== 0);
|
|
201
|
+
let defaultResource = [];
|
|
202
|
+
let maxFreeTime = 0;
|
|
203
|
+
usableList.forEach((d) => {
|
|
204
|
+
const { times } = d;
|
|
205
|
+
const currentMaxFreeTime = times.reduce((pre, cur) => {
|
|
206
|
+
var _a, _b, _c;
|
|
207
|
+
const start = ((_c = (_b = cur.event_list) == null ? void 0 : _b[((_a = cur.event_list) == null ? void 0 : _a.length) - 1]) == null ? void 0 : _c.end_at) || cur.start_at;
|
|
208
|
+
const end = cur.end_at;
|
|
209
|
+
const diff = (0, import_dayjs.default)(end).diff((0, import_dayjs.default)(start), "minute");
|
|
210
|
+
return diff > pre ? diff : pre;
|
|
211
|
+
}, 0);
|
|
212
|
+
if (currentMaxFreeTime > maxFreeTime) {
|
|
213
|
+
maxFreeTime = currentMaxFreeTime;
|
|
214
|
+
defaultResource = [d];
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
return defaultResource;
|
|
218
|
+
};
|
|
194
219
|
var setDefaultResource = ({ cacheItem, resources }) => {
|
|
195
220
|
let obj = {};
|
|
196
221
|
const serviceParams = (0, import_utils.getCacheParams)();
|
|
197
222
|
let resourceId = Number(serviceParams == null ? void 0 : serviceParams.resource_id);
|
|
198
223
|
for (let item of resources) {
|
|
199
|
-
|
|
224
|
+
const renderList = item.renderList.filter((d) => d.is_default == 1 || d.id === resourceId);
|
|
225
|
+
let defaultOriginalResource = [];
|
|
226
|
+
if (renderList.length === 0) {
|
|
227
|
+
defaultOriginalResource = getResourceMaxFreeTime(item);
|
|
228
|
+
} else {
|
|
229
|
+
defaultOriginalResource = renderList;
|
|
230
|
+
}
|
|
231
|
+
const defaultResource = defaultOriginalResource.map((d) => {
|
|
200
232
|
return {
|
|
201
233
|
...d,
|
|
202
234
|
relation_type: d.relation_type,
|
|
@@ -289,6 +321,9 @@ var getIsAutoClose = (cacheItem) => {
|
|
|
289
321
|
}
|
|
290
322
|
}
|
|
291
323
|
}
|
|
324
|
+
return Object.entries(cacheItem._extend.resource).every(([key, value]) => {
|
|
325
|
+
return (0, import_utils3.getAutoAllocationStorage)(key) && (value == null ? void 0 : value.length);
|
|
326
|
+
});
|
|
292
327
|
};
|
|
293
328
|
var getProductExtend = ({ cacheItem, state }) => {
|
|
294
329
|
const isNew = cacheItem.new || !cacheItem._extend.endDate;
|
|
@@ -40,9 +40,13 @@ var import_index = require("./index.less");
|
|
|
40
40
|
var import_utils = require("@pisell/utils");
|
|
41
41
|
var import_utilsByBooking = require("../../../utilsByBooking");
|
|
42
42
|
var import_lodash = require("lodash");
|
|
43
|
+
var import_utils2 = require("../utils");
|
|
44
|
+
var import_ahooks = require("ahooks");
|
|
45
|
+
var import_icons = require("@ant-design/icons");
|
|
43
46
|
var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref) => {
|
|
44
47
|
var _a, _b;
|
|
45
48
|
const [showError, setShowError] = (0, import_react.useState)(false);
|
|
49
|
+
const update = (0, import_ahooks.useUpdate)();
|
|
46
50
|
const data = (0, import_react.useMemo)(() => {
|
|
47
51
|
var _a2;
|
|
48
52
|
return ((_a2 = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _a2.resources) || [];
|
|
@@ -60,6 +64,10 @@ var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref
|
|
|
60
64
|
const _value = (0, import_react.useMemo)(() => {
|
|
61
65
|
return value || defaultValue;
|
|
62
66
|
}, [value, defaultValue]);
|
|
67
|
+
const handleCheckAutoAllocation = (id, checked) => {
|
|
68
|
+
(0, import_utils2.setAutoAllocationStorage)({ [id]: checked });
|
|
69
|
+
update();
|
|
70
|
+
};
|
|
63
71
|
const _onChange = (val, form_id, key) => {
|
|
64
72
|
let _val = { ..._value };
|
|
65
73
|
let maps = _val[form_id] ? _val[form_id].reduce((pre, cur) => {
|
|
@@ -142,6 +150,9 @@ var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref
|
|
|
142
150
|
check
|
|
143
151
|
};
|
|
144
152
|
});
|
|
153
|
+
const getIsAutoAllocation = (id) => {
|
|
154
|
+
return (0, import_utils2.getAutoAllocationStorage)(id);
|
|
155
|
+
};
|
|
145
156
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, data.map((item) => {
|
|
146
157
|
var _a2;
|
|
147
158
|
const cur = _value[item.form_id];
|
|
@@ -194,7 +205,11 @@ var Resources = ({ state, cacheItem, getCurrentCacheItem, onChange, value }, ref
|
|
|
194
205
|
}
|
|
195
206
|
},
|
|
196
207
|
renderOptions(item.renderList, "id", "label", "resource")
|
|
197
|
-
))
|
|
208
|
+
), /* @__PURE__ */ import_react.default.createElement(import_antd.Checkbox, { checked: getIsAutoAllocation(item.form_id), onChange: (e) => {
|
|
209
|
+
handleCheckAutoAllocation(item.form_id, e.target.checked);
|
|
210
|
+
} }), /* @__PURE__ */ import_react.default.createElement(import_antd.Tooltip, { title: import_utils.locales.getText(
|
|
211
|
+
"page.booking.text.resource.check-auto-allocation-tip"
|
|
212
|
+
) }, /* @__PURE__ */ import_react.default.createElement(import_icons.QuestionCircleOutlined, null)))
|
|
198
213
|
), state.renderType !== "eventBooking" && (errors || []).map((d) => {
|
|
199
214
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
200
215
|
import_antd.Alert,
|
|
@@ -303,9 +303,10 @@ var Info = (_, ref) => {
|
|
|
303
303
|
},
|
|
304
304
|
value: item._extend.other
|
|
305
305
|
},
|
|
306
|
-
callback: (e2) => {
|
|
306
|
+
callback: (e2, extension_type, detail) => {
|
|
307
|
+
const _detail = detail || item;
|
|
307
308
|
let cacheItem = {
|
|
308
|
-
...
|
|
309
|
+
..._detail,
|
|
309
310
|
product_id: item.id,
|
|
310
311
|
_id: item == null ? void 0 : item._id,
|
|
311
312
|
_key: e2.key,
|
|
@@ -7,5 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
判断是否需要进入编辑服务页
|
|
9
9
|
*/
|
|
10
|
-
declare const
|
|
11
|
-
declare const
|
|
10
|
+
export declare const getAutoAllocationStorage: (id: string | number) => any;
|
|
11
|
+
export declare const setAutoAllocationStorage: (data: {
|
|
12
|
+
[key: string]: boolean;
|
|
13
|
+
}) => void;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/booking/info2/service/editService/utils.tsx
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
getAutoAllocationStorage: () => getAutoAllocationStorage,
|
|
23
|
+
setAutoAllocationStorage: () => setAutoAllocationStorage
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(utils_exports);
|
|
26
|
+
var import_utils = require("@pisell/utils");
|
|
27
|
+
var getAutoAllocationStorage = (id) => {
|
|
28
|
+
const value = localStorage.getItem("resource-auto-allocation");
|
|
29
|
+
if (value) {
|
|
30
|
+
const valueObj = JSON.parse(value);
|
|
31
|
+
return (0, import_utils.isBoolean)(valueObj[id]) ? valueObj[id] : true;
|
|
32
|
+
}
|
|
33
|
+
return true;
|
|
34
|
+
};
|
|
35
|
+
var setAutoAllocationStorage = (data) => {
|
|
36
|
+
const value = localStorage.getItem("resource-auto-allocation");
|
|
37
|
+
if (value) {
|
|
38
|
+
const valueObj = JSON.parse(value);
|
|
39
|
+
localStorage.setItem("resource-auto-allocation", JSON.stringify({ ...valueObj, ...data }));
|
|
40
|
+
} else {
|
|
41
|
+
localStorage.setItem("resource-auto-allocation", JSON.stringify({ ...data }));
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
getAutoAllocationStorage,
|
|
47
|
+
setAutoAllocationStorage
|
|
48
|
+
});
|
|
@@ -201,6 +201,7 @@ declare const _default: {
|
|
|
201
201
|
'page.booking.text.please-choose-an-option-1': string;
|
|
202
202
|
'page.booking.text.please-choose-an-option-2': string;
|
|
203
203
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
204
|
+
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
204
205
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
205
206
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
206
207
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -240,6 +241,18 @@ declare const _default: {
|
|
|
240
241
|
'pisell2.text.change.pet.cancel': string;
|
|
241
242
|
'pisell2.text.booking-list': string;
|
|
242
243
|
'pisell2.text.edit-booking': string;
|
|
244
|
+
'pisell2.text.email-error-message': string;
|
|
245
|
+
'pisell2.text.phone-required-error-message': string;
|
|
246
|
+
'pisell2.text.email-required-error-message': string;
|
|
247
|
+
'pisell2.text.send-form-reminder': string;
|
|
248
|
+
'pisell2.text.send-sms-reminder': string;
|
|
249
|
+
'pisell2.text.send-email-reminder': string;
|
|
250
|
+
'pisell2.text.send-form-ok': string;
|
|
251
|
+
'pisell2.text.send-form-toast': string;
|
|
252
|
+
'pisell2.text.send-form-reminder-completed': string;
|
|
253
|
+
'pisell2.text.send-form-reminder-tooltip': string;
|
|
254
|
+
'pisell2.text.send-form-reminder-refresh': string;
|
|
255
|
+
'pisell2.text.send-form-reminder-error-message': string;
|
|
243
256
|
};
|
|
244
257
|
'zh-CN': {
|
|
245
258
|
'pisell2.text.refunded-amount': string;
|
|
@@ -443,6 +456,7 @@ declare const _default: {
|
|
|
443
456
|
'page.booking.text.please-choose-an-option-1': string;
|
|
444
457
|
'page.booking.text.please-choose-an-option-2': string;
|
|
445
458
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
459
|
+
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
446
460
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
447
461
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
448
462
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -482,6 +496,18 @@ declare const _default: {
|
|
|
482
496
|
'pisell2.text.change.pet.cancel': string;
|
|
483
497
|
'pisell2.text.booking-list': string;
|
|
484
498
|
'pisell2.text.edit-booking': string;
|
|
499
|
+
'pisell2.text.email-error-message': string;
|
|
500
|
+
'pisell2.text.phone-required-error-message': string;
|
|
501
|
+
'pisell2.text.email-required-error-message': string;
|
|
502
|
+
'pisell2.text.send-form-reminder': string;
|
|
503
|
+
'pisell2.text.send-sms-reminder': string;
|
|
504
|
+
'pisell2.text.send-email-reminder': string;
|
|
505
|
+
'pisell2.text.send-form-ok': string;
|
|
506
|
+
'pisell2.text.send-form-toast': string;
|
|
507
|
+
'pisell2.text.send-form-reminder-completed': string;
|
|
508
|
+
'pisell2.text.send-form-reminder-tooltip': string;
|
|
509
|
+
'pisell2.text.send-form-reminder-refresh': string;
|
|
510
|
+
'pisell2.text.send-form-reminder-error-message': string;
|
|
485
511
|
};
|
|
486
512
|
'zh-HK': {
|
|
487
513
|
'pisell2.text.refunded-amount': string;
|
|
@@ -685,6 +711,7 @@ declare const _default: {
|
|
|
685
711
|
'page.booking.text.please-choose-an-option-1': string;
|
|
686
712
|
'page.booking.text.please-choose-an-option-2': string;
|
|
687
713
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
714
|
+
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
688
715
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
689
716
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
690
717
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -724,6 +751,18 @@ declare const _default: {
|
|
|
724
751
|
'pisell2.text.change.pet.cancel': string;
|
|
725
752
|
'pisell2.text.booking-list': string;
|
|
726
753
|
'pisell2.text.edit-booking': string;
|
|
754
|
+
'pisell2.text.email-error-message': string;
|
|
755
|
+
'pisell2.text.phone-required-error-message': string;
|
|
756
|
+
'pisell2.text.email-required-error-message': string;
|
|
757
|
+
'pisell2.text.send-form-reminder': string;
|
|
758
|
+
'pisell2.text.send-sms-reminder': string;
|
|
759
|
+
'pisell2.text.send-email-reminder': string;
|
|
760
|
+
'pisell2.text.send-form-ok': string;
|
|
761
|
+
'pisell2.text.send-form-toast': string;
|
|
762
|
+
'pisell2.text.send-form-reminder-completed': string;
|
|
763
|
+
'pisell2.text.send-form-reminder-tooltip': string;
|
|
764
|
+
'pisell2.text.send-form-reminder-refresh': string;
|
|
765
|
+
'pisell2.text.send-form-reminder-error-message': string;
|
|
727
766
|
};
|
|
728
767
|
};
|
|
729
768
|
export default _default;
|
|
@@ -257,6 +257,7 @@ var locales_default = {
|
|
|
257
257
|
"page.booking.text.please-choose-an-option-1": "Refund: Cancel the appointment and process a refund.",
|
|
258
258
|
"page.booking.text.please-choose-an-option-2": "Cancel only: Cancel the appointment without processing a refund. (You can still process a refund after cancellation if needed)",
|
|
259
259
|
"page.booking.text.resource.min-length-error": (x, y) => `Select at least ${x} ${y}`,
|
|
260
|
+
"page.booking.text.resource.check-auto-allocation-tip": `When checked, content will be automatically filled in without manual selection`,
|
|
260
261
|
"page.booking.text.price-extra": (origin, current) => `Original price of the item:${origin},Current price of the item:${current}`,
|
|
261
262
|
"pisell2.booking.dashboard.groups-on-site-now": "Groups on-site now",
|
|
262
263
|
"pisell2.booking.dashboard.groups-on-site-now-tip": "Tip: Total number of groups who have checked in and are currently on-site",
|
|
@@ -295,7 +296,19 @@ var locales_default = {
|
|
|
295
296
|
"pisell2.text.change.pet.confirm": "Keep (Add to open items)",
|
|
296
297
|
"pisell2.text.change.pet.cancel": "Discard (Clear items)",
|
|
297
298
|
"pisell2.text.booking-list": "List",
|
|
298
|
-
"pisell2.text.edit-booking": "Edit"
|
|
299
|
+
"pisell2.text.edit-booking": "Edit",
|
|
300
|
+
"pisell2.text.email-error-message": "Email format error",
|
|
301
|
+
"pisell2.text.phone-required-error-message": "Please enter a phone number",
|
|
302
|
+
"pisell2.text.email-required-error-message": "Please enter an email address",
|
|
303
|
+
"pisell2.text.send-form-reminder": "Send Form Reminder",
|
|
304
|
+
"pisell2.text.send-sms-reminder": "Send SMS Reminder",
|
|
305
|
+
"pisell2.text.send-email-reminder": "Send Email Reminder",
|
|
306
|
+
"pisell2.text.send-form-ok": "Send",
|
|
307
|
+
"pisell2.text.send-form-toast": "Form reminder sent",
|
|
308
|
+
"pisell2.text.send-form-reminder-completed": "Requested Forms Completed",
|
|
309
|
+
"pisell2.text.send-form-reminder-tooltip": "Refresh forms",
|
|
310
|
+
"pisell2.text.send-form-reminder-refresh": "Forms refreshed successfully",
|
|
311
|
+
"pisell2.text.send-form-reminder-error-message": "Please select at least one reminder method"
|
|
299
312
|
},
|
|
300
313
|
"zh-CN": {
|
|
301
314
|
"pisell2.text.refunded-amount": "已退金额",
|
|
@@ -525,6 +538,7 @@ var locales_default = {
|
|
|
525
538
|
"page.booking.text.please-choose-an-option-1": "退款:取消预约,同时处理退款。",
|
|
526
539
|
"page.booking.text.please-choose-an-option-2": "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)",
|
|
527
540
|
"page.booking.text.resource.min-length-error": (x, y) => `至少选择${x}项${y}`,
|
|
541
|
+
"page.booking.text.resource.check-auto-allocation-tip": `勾选后将自动填入内容,无需手动选择`,
|
|
528
542
|
"page.booking.text.price-extra": (origin, current) => `商品原价:${origin},商品现价:${current}`,
|
|
529
543
|
"pisell2.booking.dashboard.groups-on-site-now": "当前在场团体",
|
|
530
544
|
"pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已检票并在场内的团体总数",
|
|
@@ -563,7 +577,19 @@ var locales_default = {
|
|
|
563
577
|
"pisell2.text.change.pet.confirm": "保留(添加到未分配中)",
|
|
564
578
|
"pisell2.text.change.pet.cancel": "不保留(清空商品)",
|
|
565
579
|
"pisell2.text.booking-list": "列表",
|
|
566
|
-
"pisell2.text.edit-booking": "编辑"
|
|
580
|
+
"pisell2.text.edit-booking": "编辑",
|
|
581
|
+
"pisell2.text.email-error-message": "电子邮件格式错误",
|
|
582
|
+
"pisell2.text.phone-required-error-message": "请输入手机号码",
|
|
583
|
+
"pisell2.text.email-required-error-message": "请输入邮箱地址",
|
|
584
|
+
"pisell2.text.send-form-reminder": "发送表单提醒",
|
|
585
|
+
"pisell2.text.send-sms-reminder": "发送短信提醒",
|
|
586
|
+
"pisell2.text.send-email-reminder": "发送邮件提醒",
|
|
587
|
+
"pisell2.text.send-form-ok": "发送",
|
|
588
|
+
"pisell2.text.send-form-toast": "表单提醒已发送",
|
|
589
|
+
"pisell2.text.send-form-reminder-completed": "已完成所需表单",
|
|
590
|
+
"pisell2.text.send-form-reminder-tooltip": "刷新表单",
|
|
591
|
+
"pisell2.text.send-form-reminder-refresh": "已刷新表单",
|
|
592
|
+
"pisell2.text.send-form-reminder-error-message": "请至少选择一种提醒方式"
|
|
567
593
|
},
|
|
568
594
|
"zh-HK": {
|
|
569
595
|
"pisell2.text.refunded-amount": "已退金額",
|
|
@@ -793,6 +819,7 @@ var locales_default = {
|
|
|
793
819
|
"page.booking.text.please-choose-an-option-1": "退款:取消預約,同時處理退款。",
|
|
794
820
|
"page.booking.text.please-choose-an-option-2": "僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)",
|
|
795
821
|
"page.booking.text.resource.min-length-error": (x, y) => `至少選擇${x}項${y}`,
|
|
822
|
+
"page.booking.text.resource.check-auto-allocation-tip": `勾選後將自動填入內容,無需手動選擇`,
|
|
796
823
|
"page.booking.text.price-extra": (origin, current) => `商品原價:${origin},商品現價:${current}`,
|
|
797
824
|
"pisell2.booking.dashboard.groups-on-site-now": "當前在場團體",
|
|
798
825
|
"pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已檢票並在場內的團體總數",
|
|
@@ -831,6 +858,18 @@ var locales_default = {
|
|
|
831
858
|
"pisell2.text.change.pet.confirm": "保留(添加到未分配中)",
|
|
832
859
|
"pisell2.text.change.pet.cancel": "不保留(清空商品)",
|
|
833
860
|
"pisell2.text.booking-list": "列表",
|
|
834
|
-
"pisell2.text.edit-booking": "編輯"
|
|
861
|
+
"pisell2.text.edit-booking": "編輯",
|
|
862
|
+
"pisell2.text.email-error-message": "電子郵件格式錯誤",
|
|
863
|
+
"pisell2.text.phone-required-error-message": "請輸入手機號碼",
|
|
864
|
+
"pisell2.text.email-required-error-message": "請輸入電子郵件地址",
|
|
865
|
+
"pisell2.text.send-form-reminder": "發送表單提醒",
|
|
866
|
+
"pisell2.text.send-sms-reminder": "發送短信提醒",
|
|
867
|
+
"pisell2.text.send-email-reminder": "發送郵件提醒",
|
|
868
|
+
"pisell2.text.send-form-ok": "發送",
|
|
869
|
+
"pisell2.text.send-form-toast": "表單提醒已發送",
|
|
870
|
+
"pisell2.text.send-form-reminder-completed": "已完成所需表單",
|
|
871
|
+
"pisell2.text.send-form-reminder-tooltip": "刷新表單",
|
|
872
|
+
"pisell2.text.send-form-reminder-refresh": "已刷新表單",
|
|
873
|
+
"pisell2.text.send-form-reminder-error-message": "請至少選擇一種提醒方式"
|
|
835
874
|
}
|
|
836
875
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -105,11 +104,4 @@ export declare const walkInData: {
|
|
|
105
104
|
id: number;
|
|
106
105
|
nickname: string;
|
|
107
106
|
};
|
|
108
|
-
export declare const Provider:
|
|
109
|
-
state: FormState;
|
|
110
|
-
} & {
|
|
111
|
-
dispatch: (params: {
|
|
112
|
-
type: string;
|
|
113
|
-
payload: any;
|
|
114
|
-
}) => void;
|
|
115
|
-
}>;
|
|
107
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -162,10 +162,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
|
162
162
|
export declare const getDuration: (duration: number | {
|
|
163
163
|
type: string;
|
|
164
164
|
value: number;
|
|
165
|
-
}) => number | {
|
|
165
|
+
}) => number | "flexible" | {
|
|
166
166
|
type: string;
|
|
167
167
|
value: number;
|
|
168
|
-
}
|
|
168
|
+
};
|
|
169
169
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
170
170
|
export declare const getIsEdit: (state: any) => boolean;
|
|
171
171
|
export {};
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "
|
|
12
|
+
onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|