@pisell/private-materials 6.0.23 → 6.0.25
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 +29 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +12 -27
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +18 -33
- package/es/businessModel/SalesModel/Sales/index.d.ts +24 -0
- package/es/businessModel/SalesModel/Sales/index.js +69 -0
- package/es/businessModel/SalesModel/hooks/index.d.ts +1 -0
- package/es/businessModel/SalesModel/hooks/index.js +7 -0
- package/es/businessModel/SalesModel/index.d.ts +4 -0
- package/es/businessModel/SalesModel/index.js +18 -0
- package/es/businessModel/index.d.ts +0 -0
- package/es/businessModel/index.js +0 -0
- package/es/components/Sales/Cart/index.d.ts +53 -0
- package/es/components/Sales/Cart/index.js +590 -0
- package/es/components/Sales/Cart/serve.d.ts +2 -0
- package/es/components/Sales/Cart/serve.js +11 -0
- package/es/components/Sales/Cart/types.d.ts +19 -0
- package/es/components/Sales/Cart/types.js +1 -0
- package/es/components/Sales/Checkout/index.d.ts +33 -0
- package/es/components/Sales/Checkout/index.js +152 -0
- package/es/components/Sales/Checkout/serve.d.ts +2 -0
- package/es/components/Sales/Checkout/serve.js +11 -0
- package/es/components/Sales/Checkout/utils.d.ts +27 -0
- package/es/components/Sales/Checkout/utils.js +104 -0
- package/es/components/Sales/Customer/index.d.ts +24 -0
- package/es/components/Sales/Customer/index.js +59 -0
- package/es/components/Sales/Event/Detail.d.ts +27 -0
- package/es/components/Sales/Event/Detail.js +246 -0
- package/es/components/Sales/Event/index.d.ts +30 -0
- package/es/components/Sales/Event/index.js +123 -0
- package/es/components/Sales/Event/serve.d.ts +26 -0
- package/es/components/Sales/Event/serve.js +33 -0
- package/es/components/Sales/Holder/index.d.ts +33 -0
- package/es/components/Sales/Holder/index.js +229 -0
- package/es/components/Sales/Holder/serve.d.ts +8 -0
- package/es/components/Sales/Holder/serve.js +20 -0
- package/es/components/Sales/Init/index.d.ts +24 -0
- package/es/components/Sales/Init/index.js +117 -0
- package/es/components/Sales/Init/serve.d.ts +3 -0
- package/es/components/Sales/Init/serve.js +11 -0
- package/es/components/Sales/Resource/index.d.ts +26 -0
- package/es/components/Sales/Resource/index.js +128 -0
- package/es/components/Sales/Resource/serve.d.ts +5 -0
- package/es/components/Sales/Resource/serve.js +8 -0
- package/es/components/Sales/Step/index.d.ts +37 -0
- package/es/components/Sales/Step/index.js +195 -0
- package/es/components/Sales/Summary/index.d.ts +25 -0
- package/es/components/Sales/Summary/index.js +50 -0
- package/es/components/Sales/Summary/serve.d.ts +0 -0
- package/es/components/Sales/Summary/serve.js +0 -0
- package/es/components/Sales/Summary/utils.d.ts +36 -0
- package/es/components/Sales/Summary/utils.js +63 -0
- package/es/components/Sales/hooks/index.d.ts +1 -0
- package/es/components/Sales/hooks/index.js +3 -0
- package/es/components/Sales/index.d.ts +20 -0
- package/es/components/Sales/index.js +26 -0
- package/es/components/Sales/utils/index.d.ts +1 -0
- package/es/components/Sales/utils/index.js +18 -0
- package/es/components/booking/components/customSelect/index.d.ts +1 -0
- package/es/components/booking/components/customSelect/index.js +6 -2
- package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
- package/es/components/booking/components/footer/AppointmentProductModal/index.js +38 -0
- package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/es/components/booking/components/footer/amount.js +46 -22
- package/es/components/booking/components/footer/index.js +116 -79
- package/es/components/booking/components/footer/serve.d.ts +2 -0
- package/es/components/booking/components/footer/serve.js +44 -0
- package/es/components/booking/components/footer/utils.js +280 -35
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/Provider.js +54 -0
- package/es/components/booking/info/addServiceVariant/index.js +8 -1
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +14 -13
- package/es/components/booking/info/clientVariant/vertical/index.js +131 -15
- package/es/components/booking/info/dateRange/index.d.ts +4 -0
- package/es/components/booking/info/dateRange/index.js +98 -0
- package/es/components/booking/info/dateRange/index.less +21 -0
- package/es/components/booking/info/main.js +44 -28
- package/es/components/booking/info/model.js +3 -0
- package/es/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
- package/es/components/booking/info/pet/ChangePetModal/index.js +134 -0
- package/es/components/booking/info/pet/ChangePetModal/index.less +4 -0
- package/es/components/booking/info/pet/index.d.ts +1 -1
- package/es/components/booking/info/pet/index.js +93 -34
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.js +195 -104
- package/es/components/booking/info/service/addService/index.less +13 -3
- package/es/components/booking/info/service/addService/utils.d.ts +12 -2
- package/es/components/booking/info/service/addService/utils.js +103 -26
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +4 -0
- package/es/components/booking/info/service/editService/BookingList/index.js +39 -0
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +3 -0
- package/es/components/booking/info/service/editService/EditTabs/index.js +35 -0
- package/es/components/booking/info/service/editService/index.js +449 -141
- package/es/components/booking/info/service/editService/index.less +18 -13
- package/es/components/booking/info/service/serve.d.ts +10 -0
- package/es/components/booking/info/service/serve.js +28 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.js +55 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service/serviceManager/index.js +281 -0
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info/service/serviceManager/utils.js +0 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/es/components/booking/info/service2/Group/utils.js +146 -0
- package/es/components/booking/info/service2/Lists.d.ts +3 -0
- package/es/components/booking/info/service2/Lists.js +153 -0
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/es/components/booking/info/service2/hooks/useSelectPet.js +54 -0
- package/es/components/booking/info/service2/index.d.ts +6 -0
- package/es/components/booking/info/service2/index.js +57 -0
- package/es/components/booking/info/service2/status.d.ts +31 -0
- package/es/components/booking/info/service2/status.js +78 -0
- package/es/components/booking/info/service2/utils.d.ts +240 -0
- package/es/components/booking/info/service2/utils.js +1077 -0
- package/es/components/booking/info/utils.d.ts +20 -0
- package/es/components/booking/info/utils.js +38 -1
- package/es/components/booking/info2/utilsByBooking.js +0 -1
- package/es/components/booking/locales.d.ts +66 -0
- package/es/components/booking/locales.js +81 -3
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +7 -0
- package/es/components/booking/materiels/holder/index.js +51 -0
- package/es/components/booking/model.d.ts +5 -1
- package/es/components/booking/model.js +4 -2
- package/es/components/booking/utils.d.ts +12 -3
- package/es/components/booking/utils.js +143 -26
- package/es/components/eftpos/hooks.d.ts +4 -4
- package/es/components/eftpos/index.d.ts +1 -0
- 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/component/step/index.d.ts +6 -6
- package/es/components/eftposPay/component/step/step.d.ts +4 -4
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/es/components/eftposPay/windcave/helper.d.ts +1 -1
- package/es/components/eventBooking/assets/alert-circle.png +0 -0
- package/es/components/eventBooking/assets/calendar-heart.svg +5 -0
- package/es/components/eventBooking/assets/compass.svg +13 -0
- package/es/components/eventBooking/assets/image.svg +5 -0
- package/es/components/eventBooking/assets/phone.svg +5 -0
- package/es/components/eventBooking/assets/shopping-cart.svg +10 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +3 -0
- package/es/components/eventBooking/components/ErrorTip/index.js +14 -0
- package/es/components/eventBooking/components/ErrorTip/index.less +51 -0
- package/es/components/eventBooking/components/OpenCard/index.d.ts +4 -0
- package/es/components/eventBooking/components/OpenCard/index.js +65 -0
- package/es/components/eventBooking/components/OpenCard/index.less +52 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +274 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +46 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +63 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.less +87 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/index.js +30 -0
- package/es/components/eventBooking/components/Provider/Cart/index.less +2 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +4 -0
- package/es/components/eventBooking/components/Provider/Content/index.js +65 -0
- package/es/components/eventBooking/components/Provider/Content/index.less +31 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.js +34 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Event/index.js +93 -0
- package/es/components/eventBooking/components/Provider/Event/index.less +20 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Footer/index.js +76 -0
- package/es/components/eventBooking/components/Provider/Footer/index.less +64 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +4 -0
- package/es/components/eventBooking/components/Provider/Header/index.js +75 -0
- package/es/components/eventBooking/components/Provider/Header/index.less +2 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Information/index.js +178 -0
- package/es/components/eventBooking/components/Provider/Information/index.less +92 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.js +34 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.less +27 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.js +27 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.less +32 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +31 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Resource/index.js +79 -0
- package/es/components/eventBooking/components/Provider/Resource/index.less +46 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.js +90 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +26 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +10 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +65 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +3 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +69 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +12 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +152 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +20 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +38 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +28 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +269 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +256 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +173 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.js +36 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.less +2 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +2 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +38 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +3 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.js +33 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +3 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +30 -0
- package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
- package/es/components/eventBooking/components/bookingDetailModal/index.js +337 -0
- package/es/components/eventBooking/components/bookingDetailModal/index.less +82 -0
- package/es/components/eventBooking/components/bookingServiceList/index.d.ts +17 -0
- package/es/components/eventBooking/components/bookingServiceList/index.js +52 -0
- package/es/components/eventBooking/components/bookingServiceList/index.less +6 -0
- package/es/components/eventBooking/components/eventCard/index.d.ts +14 -0
- package/es/components/eventBooking/components/eventCard/index.js +116 -0
- package/es/components/eventBooking/components/eventCard/index.less +81 -0
- package/es/components/eventBooking/components/productCard/index.d.ts +16 -0
- package/es/components/eventBooking/components/productCard/index.js +79 -0
- package/es/components/eventBooking/components/productCard/index.less +60 -0
- package/es/components/eventBooking/components/progressBar/index.d.ts +16 -0
- package/es/components/eventBooking/components/progressBar/index.js +93 -0
- package/es/components/eventBooking/components/progressBar/index.less +15 -0
- package/es/components/eventBooking/components/resourceDisplay/index.d.ts +23 -0
- package/es/components/eventBooking/components/resourceDisplay/index.js +148 -0
- package/es/components/eventBooking/components/resourceDisplay/index.less +95 -0
- package/es/components/eventBooking/components/resourceUsability/index.d.ts +12 -0
- package/es/components/eventBooking/components/resourceUsability/index.js +44 -0
- package/es/components/eventBooking/components/resourceUsability/index.less +40 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +10 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +37 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +11 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +127 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +13 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.js +142 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.less +222 -0
- package/es/components/eventBooking/components/selectHolder/index.d.ts +22 -0
- package/es/components/eventBooking/components/selectHolder/index.js +118 -0
- package/es/components/eventBooking/components/selectHolder/index.less +70 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.d.ts +20 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.js +168 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.less +74 -0
- package/es/components/eventBooking/index.d.ts +4 -0
- package/es/components/eventBooking/index.js +58 -0
- package/es/components/eventBooking/index.less +22 -0
- package/es/components/eventBooking/locales.d.ts +216 -0
- package/es/components/eventBooking/locales.js +251 -0
- package/es/components/eventBooking/mock.d.ts +627 -0
- package/es/components/eventBooking/mock.js +1172 -0
- package/es/components/eventBooking/status.d.ts +21 -0
- package/es/components/eventBooking/status.js +51 -0
- package/es/components/eventBooking/type.d.ts +17 -0
- package/es/components/eventBooking/type.js +1 -0
- package/es/components/eventBooking/utils.d.ts +45 -0
- package/es/components/eventBooking/utils.js +99 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/shoppingCart/Provider.d.ts +3 -0
- package/es/components/shoppingCart/Provider.js +86 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/es/components/shoppingCart/components/Cart/Product.js +71 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
- package/es/components/shoppingCart/components/Cart/index.js +73 -0
- package/es/components/shoppingCart/components/Cart/index.less +68 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +4 -0
- package/es/components/shoppingCart/components/Empty/index.js +15 -0
- package/es/components/shoppingCart/components/Empty/index.less +19 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/es/components/shoppingCart/components/Render/index.js +70 -0
- package/es/components/shoppingCart/components/Render/index.less +2 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.js +132 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +2 -0
- package/es/components/shoppingCart/hooks/useAddService.js +23 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +2 -0
- package/es/components/shoppingCart/hooks/useClearCart.js +59 -0
- package/es/components/shoppingCart/hooks/useContext.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useContext.js +5 -0
- package/es/components/shoppingCart/index.d.ts +4 -0
- package/es/components/shoppingCart/index.js +24 -0
- package/es/components/shoppingCart/locales.d.ts +33 -0
- package/es/components/shoppingCart/locales.js +38 -0
- package/es/components/shoppingCart/mock.d.ts +40 -0
- package/es/components/shoppingCart/mock.js +40 -0
- package/es/components/shoppingCart/status.d.ts +2 -0
- package/es/components/shoppingCart/status.js +22 -0
- package/es/components/shoppingCart/type.d.ts +40 -0
- package/es/components/shoppingCart/type.js +1 -0
- package/es/components/shoppingCart/utils.d.ts +63 -0
- package/es/components/shoppingCart/utils.js +116 -0
- package/es/components/tabProduct/tabs/index.less +13 -3
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.js +1 -1
- package/es/components/workSpaceList/components/AppearanceEdit/constants.js +11 -1
- package/es/components/workSpaceList/components/Card/constants.js +2 -1
- package/es/components/workSpaceList/components/EditableString/index.js +1 -1
- package/es/components/workSpaceList/components/SearchBar/index.js +4 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.js +1 -1
- package/es/components/workSpaceList/components/Sort/index.js +1 -1
- package/es/components/workSpaceList/components/WorkspaceItem/index.js +1 -1
- package/es/components/workSpaceList/server.d.ts +3 -3
- package/es/index.d.ts +13 -0
- package/es/index.js +14 -1
- package/lib/businessModel/SalesModel/Sales/index.d.ts +24 -0
- package/lib/businessModel/SalesModel/Sales/index.js +104 -0
- package/lib/businessModel/SalesModel/hooks/index.d.ts +1 -0
- package/lib/businessModel/SalesModel/hooks/index.js +34 -0
- package/lib/businessModel/SalesModel/index.d.ts +4 -0
- package/lib/businessModel/SalesModel/index.js +51 -0
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/businessModel/index.js +0 -0
- package/lib/components/Sales/Cart/index.d.ts +53 -0
- package/lib/components/Sales/Cart/index.js +500 -0
- package/lib/components/Sales/Cart/serve.d.ts +2 -0
- package/lib/components/Sales/Cart/serve.js +37 -0
- package/lib/components/Sales/Cart/types.d.ts +19 -0
- package/lib/components/Sales/Cart/types.js +17 -0
- package/lib/components/Sales/Checkout/index.d.ts +33 -0
- package/lib/components/Sales/Checkout/index.js +130 -0
- package/lib/components/Sales/Checkout/serve.d.ts +2 -0
- package/lib/components/Sales/Checkout/serve.js +37 -0
- package/lib/components/Sales/Checkout/utils.d.ts +27 -0
- package/lib/components/Sales/Checkout/utils.js +88 -0
- package/lib/components/Sales/Customer/index.d.ts +24 -0
- package/lib/components/Sales/Customer/index.js +90 -0
- package/lib/components/Sales/Event/Detail.d.ts +27 -0
- package/lib/components/Sales/Event/Detail.js +224 -0
- package/lib/components/Sales/Event/index.d.ts +30 -0
- package/lib/components/Sales/Event/index.js +136 -0
- package/lib/components/Sales/Event/serve.d.ts +26 -0
- package/lib/components/Sales/Event/serve.js +54 -0
- package/lib/components/Sales/Holder/index.d.ts +33 -0
- package/lib/components/Sales/Holder/index.js +210 -0
- package/lib/components/Sales/Holder/serve.d.ts +8 -0
- package/lib/components/Sales/Holder/serve.js +37 -0
- package/lib/components/Sales/Init/index.d.ts +24 -0
- package/lib/components/Sales/Init/index.js +128 -0
- package/lib/components/Sales/Init/serve.d.ts +3 -0
- package/lib/components/Sales/Init/serve.js +34 -0
- package/lib/components/Sales/Resource/index.d.ts +26 -0
- package/lib/components/Sales/Resource/index.js +133 -0
- package/lib/components/Sales/Resource/serve.d.ts +5 -0
- package/lib/components/Sales/Resource/serve.js +32 -0
- package/lib/components/Sales/Step/index.d.ts +37 -0
- package/lib/components/Sales/Step/index.js +170 -0
- package/lib/components/Sales/Summary/index.d.ts +25 -0
- package/lib/components/Sales/Summary/index.js +83 -0
- package/lib/components/Sales/Summary/serve.d.ts +0 -0
- package/lib/components/Sales/Summary/serve.js +0 -0
- package/lib/components/Sales/Summary/utils.d.ts +36 -0
- package/lib/components/Sales/Summary/utils.js +80 -0
- package/lib/components/Sales/hooks/index.d.ts +1 -0
- package/lib/components/Sales/hooks/index.js +31 -0
- package/lib/components/Sales/index.d.ts +20 -0
- package/lib/components/Sales/index.js +79 -0
- package/lib/components/Sales/utils/index.d.ts +1 -0
- package/lib/components/Sales/utils/index.js +43 -0
- package/lib/components/booking/components/customSelect/index.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.js +6 -2
- package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
- package/lib/components/booking/components/footer/AppointmentProductModal/index.js +60 -0
- package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/lib/components/booking/components/footer/amount.js +27 -8
- package/lib/components/booking/components/footer/index.js +48 -55
- package/lib/components/booking/components/footer/serve.d.ts +2 -0
- package/lib/components/booking/components/footer/serve.js +12 -0
- package/lib/components/booking/components/footer/utils.js +168 -37
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/Provider.js +0 -0
- package/lib/components/booking/info/addServiceVariant/index.js +5 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +8 -7
- package/lib/components/booking/info/clientVariant/vertical/index.js +96 -20
- package/lib/components/booking/info/dateRange/index.d.ts +4 -0
- package/lib/components/booking/info/dateRange/index.js +111 -0
- package/lib/components/booking/info/dateRange/index.less +21 -0
- package/lib/components/booking/info/main.js +33 -22
- package/lib/components/booking/info/model.js +3 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.js +121 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.less +4 -0
- package/lib/components/booking/info/pet/index.d.ts +1 -1
- package/lib/components/booking/info/pet/index.js +90 -44
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.js +131 -101
- package/lib/components/booking/info/service/addService/index.less +13 -3
- package/lib/components/booking/info/service/addService/utils.d.ts +12 -2
- package/lib/components/booking/info/service/addService/utils.js +57 -10
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +4 -0
- package/lib/components/booking/info/service/editService/BookingList/index.js +55 -0
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +3 -0
- package/lib/components/booking/info/service/editService/EditTabs/index.js +75 -0
- package/lib/components/booking/info/service/editService/index.js +446 -197
- package/lib/components/booking/info/service/editService/index.less +18 -13
- package/lib/components/booking/info/service/serve.d.ts +10 -0
- package/lib/components/booking/info/service/serve.js +7 -2
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +70 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service/serviceManager/index.js +211 -0
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info/service/serviceManager/utils.js +0 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/lib/components/booking/info/service2/Group/utils.js +142 -0
- package/lib/components/booking/info/service2/Lists.d.ts +3 -0
- package/lib/components/booking/info/service2/Lists.js +116 -0
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +49 -0
- package/lib/components/booking/info/service2/index.d.ts +6 -0
- package/lib/components/booking/info/service2/index.js +75 -0
- package/lib/components/booking/info/service2/status.d.ts +31 -0
- package/lib/components/booking/info/service2/status.js +81 -0
- package/lib/components/booking/info/service2/utils.d.ts +240 -0
- package/lib/components/booking/info/service2/utils.js +686 -0
- package/lib/components/booking/info/utils.d.ts +20 -0
- package/lib/components/booking/info/utils.js +42 -1
- package/lib/components/booking/locales.d.ts +66 -0
- package/lib/components/booking/locales.js +69 -3
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +7 -0
- package/lib/components/booking/materiels/holder/index.js +64 -0
- package/lib/components/booking/model.d.ts +5 -1
- package/lib/components/booking/model.js +4 -2
- package/lib/components/booking/utils.d.ts +12 -3
- package/lib/components/booking/utils.js +89 -18
- package/lib/components/eftpos/hooks.d.ts +4 -4
- package/lib/components/eftpos/index.d.ts +1 -0
- 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/component/step/index.d.ts +6 -6
- package/lib/components/eftposPay/component/step/step.d.ts +4 -4
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/lib/components/eftposPay/windcave/helper.d.ts +1 -1
- package/lib/components/eventBooking/assets/alert-circle.png +0 -0
- package/lib/components/eventBooking/assets/calendar-heart.svg +5 -0
- package/lib/components/eventBooking/assets/compass.svg +13 -0
- package/lib/components/eventBooking/assets/image.svg +5 -0
- package/lib/components/eventBooking/assets/phone.svg +5 -0
- package/lib/components/eventBooking/assets/shopping-cart.svg +10 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +3 -0
- package/lib/components/eventBooking/components/ErrorTip/index.js +30 -0
- package/lib/components/eventBooking/components/ErrorTip/index.less +51 -0
- package/lib/components/eventBooking/components/OpenCard/index.d.ts +4 -0
- package/lib/components/eventBooking/components/OpenCard/index.js +90 -0
- package/lib/components/eventBooking/components/OpenCard/index.less +52 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +158 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +82 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +92 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.less +87 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.js +59 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.less +2 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +4 -0
- package/lib/components/eventBooking/components/Provider/Content/index.js +90 -0
- package/lib/components/eventBooking/components/Provider/Content/index.less +31 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.js +60 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Event/index.js +100 -0
- package/lib/components/eventBooking/components/Provider/Event/index.less +20 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.js +87 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.less +64 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +4 -0
- package/lib/components/eventBooking/components/Provider/Header/index.js +80 -0
- package/lib/components/eventBooking/components/Provider/Header/index.less +2 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Information/index.js +151 -0
- package/lib/components/eventBooking/components/Provider/Information/index.less +92 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.js +67 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.less +27 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.js +57 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.less +32 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +2 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +62 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.js +90 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.less +46 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.js +97 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +55 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +10 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +78 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +32 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +3 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +86 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +12 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +121 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +37 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +58 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +87 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +55 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +196 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +198 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +122 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.js +70 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.less +2 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +2 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +75 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +3 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.js +66 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +3 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +69 -0
- package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +248 -0
- package/lib/components/eventBooking/components/bookingDetailModal/index.less +82 -0
- package/lib/components/eventBooking/components/bookingServiceList/index.d.ts +17 -0
- package/lib/components/eventBooking/components/bookingServiceList/index.js +79 -0
- package/lib/components/eventBooking/components/bookingServiceList/index.less +6 -0
- package/lib/components/eventBooking/components/eventCard/index.d.ts +14 -0
- package/lib/components/eventBooking/components/eventCard/index.js +124 -0
- package/lib/components/eventBooking/components/eventCard/index.less +81 -0
- package/lib/components/eventBooking/components/productCard/index.d.ts +16 -0
- package/lib/components/eventBooking/components/productCard/index.js +77 -0
- package/lib/components/eventBooking/components/productCard/index.less +60 -0
- package/lib/components/eventBooking/components/progressBar/index.d.ts +16 -0
- package/lib/components/eventBooking/components/progressBar/index.js +100 -0
- package/lib/components/eventBooking/components/progressBar/index.less +15 -0
- package/lib/components/eventBooking/components/resourceDisplay/index.d.ts +23 -0
- package/lib/components/eventBooking/components/resourceDisplay/index.js +116 -0
- package/lib/components/eventBooking/components/resourceDisplay/index.less +95 -0
- package/lib/components/eventBooking/components/resourceUsability/index.d.ts +12 -0
- package/lib/components/eventBooking/components/resourceUsability/index.js +76 -0
- package/lib/components/eventBooking/components/resourceUsability/index.less +40 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +10 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +73 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +11 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +135 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +13 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.js +125 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.less +222 -0
- package/lib/components/eventBooking/components/selectHolder/index.d.ts +22 -0
- package/lib/components/eventBooking/components/selectHolder/index.js +106 -0
- package/lib/components/eventBooking/components/selectHolder/index.less +70 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.d.ts +20 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.js +146 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +74 -0
- package/lib/components/eventBooking/index.d.ts +4 -0
- package/lib/components/eventBooking/index.js +78 -0
- package/lib/components/eventBooking/index.less +22 -0
- package/lib/components/eventBooking/locales.d.ts +216 -0
- package/lib/components/eventBooking/locales.js +239 -0
- package/lib/components/eventBooking/mock.d.ts +627 -0
- package/lib/components/eventBooking/mock.js +1352 -0
- package/lib/components/eventBooking/status.d.ts +21 -0
- package/lib/components/eventBooking/status.js +70 -0
- package/lib/components/eventBooking/type.d.ts +17 -0
- package/lib/components/eventBooking/type.js +17 -0
- package/lib/components/eventBooking/utils.d.ts +45 -0
- package/lib/components/eventBooking/utils.js +90 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/shoppingCart/Provider.d.ts +3 -0
- package/lib/components/shoppingCart/Provider.js +110 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +72 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
- package/lib/components/shoppingCart/components/Cart/index.js +85 -0
- package/lib/components/shoppingCart/components/Cart/index.less +68 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/Empty/index.js +43 -0
- package/lib/components/shoppingCart/components/Empty/index.less +19 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/Render/index.js +75 -0
- package/lib/components/shoppingCart/components/Render/index.less +2 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.js +124 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +2 -0
- package/lib/components/shoppingCart/hooks/useAddService.js +55 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +2 -0
- package/lib/components/shoppingCart/hooks/useClearCart.js +66 -0
- package/lib/components/shoppingCart/hooks/useContext.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useContext.js +31 -0
- package/lib/components/shoppingCart/index.d.ts +4 -0
- package/lib/components/shoppingCart/index.js +60 -0
- package/lib/components/shoppingCart/locales.d.ts +33 -0
- package/lib/components/shoppingCart/locales.js +56 -0
- package/lib/components/shoppingCart/mock.d.ts +40 -0
- package/lib/components/shoppingCart/mock.js +76 -0
- package/lib/components/shoppingCart/status.d.ts +2 -0
- package/lib/components/shoppingCart/status.js +60 -0
- package/lib/components/shoppingCart/type.d.ts +40 -0
- package/lib/components/shoppingCart/type.js +17 -0
- package/lib/components/shoppingCart/utils.d.ts +63 -0
- package/lib/components/shoppingCart/utils.js +83 -0
- package/lib/components/tabProduct/tabs/index.less +13 -3
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.js +2 -2
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.js +32 -12
- package/lib/components/workSpaceList/components/Card/constants.js +4 -3
- package/lib/components/workSpaceList/components/EditableString/index.js +2 -2
- package/lib/components/workSpaceList/components/SearchBar/index.js +8 -5
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.js +2 -2
- package/lib/components/workSpaceList/components/Sort/index.js +2 -2
- package/lib/components/workSpaceList/components/WorkspaceItem/index.js +2 -2
- package/lib/components/workSpaceList/server.d.ts +3 -3
- package/lib/index.d.ts +13 -0
- package/lib/index.js +39 -0
- package/lowcode/event-booking/meta.ts +69 -0
- package/lowcode/event-booking-availability-calendar/meta.ts +53 -0
- package/lowcode/event-booking-detail-modal/meta.ts +39 -0
- package/lowcode/event-booking-service-list/meta.ts +77 -0
- package/lowcode/event-card/meta.ts +77 -0
- package/lowcode/event-product-card/meta.ts +79 -0
- package/lowcode/event-progress-bar/meta.ts +65 -0
- package/lowcode/event-resource-display/meta.ts +169 -0
- package/lowcode/event-resource-usability/meta.ts +67 -0
- package/lowcode/event-schedule-calendar/meta.ts +56 -0
- package/lowcode/event-select-holder/meta.ts +84 -0
- package/lowcode/event-time-resource-selector/meta.ts +69 -0
- package/lowcode/shopping-cart/meta.ts +98 -0
- package/package.json +4 -4
@@ -38,7 +38,10 @@ var import_dayjs = __toESM(require("dayjs"));
|
|
38
38
|
var import_utils = require("../../utils");
|
39
39
|
var import_utils2 = require("../../utils");
|
40
40
|
var import_utilsByBooking = require("../../info2/utilsByBooking");
|
41
|
-
var import_utils3 = require("
|
41
|
+
var import_utils3 = require("../../utils");
|
42
|
+
var import_status = require("../../info/service2/status");
|
43
|
+
var import_utils4 = require("../../info/service2/utils");
|
44
|
+
var import_utils5 = require("@pisell/utils");
|
42
45
|
var formatNote = (data) => {
|
43
46
|
var _a;
|
44
47
|
return ((_a = data.notes) == null ? void 0 : _a.orderNote) || "";
|
@@ -66,11 +69,12 @@ var formatProductOption = (option) => {
|
|
66
69
|
"num": d.num,
|
67
70
|
"option_group_item_id": d.product_option_item_id,
|
68
71
|
"option_group_id": d.option_group_id
|
72
|
+
// "add_price": Number(d?.add_price),
|
69
73
|
};
|
70
74
|
});
|
71
75
|
};
|
72
76
|
var log = (data) => {
|
73
|
-
(0,
|
77
|
+
(0, import_utils5.sendWarningLog)({
|
74
78
|
title: "预约2.0下单无效的套餐商品数据",
|
75
79
|
content: [
|
76
80
|
{ key: "bundle", value: JSON.stringify(data) },
|
@@ -98,6 +102,8 @@ var formatProductBundle = (bundle) => {
|
|
98
102
|
"num": d.num,
|
99
103
|
"extension_id": d.extension_id,
|
100
104
|
"extension_type": d.extension_type,
|
105
|
+
// "price": Number(d?.price),
|
106
|
+
// "price_type": d?.price_type,
|
101
107
|
"option": formatProductOption(d.option)
|
102
108
|
};
|
103
109
|
});
|
@@ -105,7 +111,7 @@ var formatProductBundle = (bundle) => {
|
|
105
111
|
var getSubType = (item) => {
|
106
112
|
var _a;
|
107
113
|
const _type = (_a = item.duration) == null ? void 0 : _a.type;
|
108
|
-
if (_type
|
114
|
+
if (_type) {
|
109
115
|
return _type;
|
110
116
|
}
|
111
117
|
return "minutes";
|
@@ -141,39 +147,138 @@ var formatResource = (service) => {
|
|
141
147
|
return void 0;
|
142
148
|
}
|
143
149
|
};
|
144
|
-
var
|
145
|
-
|
150
|
+
var formatHolders = (state, item, values) => {
|
151
|
+
var _a, _b, _c, _d, _e;
|
152
|
+
const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
|
153
|
+
let obj = {
|
154
|
+
customer_id: values.customer_id,
|
155
|
+
form_id,
|
156
|
+
form_record: [((_e = item._extend) == null ? void 0 : _e.holder_id) || 0]
|
157
|
+
};
|
158
|
+
if (state.isFranchisee) {
|
159
|
+
obj.is_source_shop = 1;
|
160
|
+
}
|
161
|
+
return obj;
|
162
|
+
};
|
163
|
+
var formatProductPrice = (item) => {
|
164
|
+
var _a, _b, _c;
|
165
|
+
const other = (_a = item._extend) == null ? void 0 : _a.other;
|
166
|
+
let price = Number((_b = item._extend) == null ? void 0 : _b.price);
|
167
|
+
if (other == null ? void 0 : other.option) {
|
168
|
+
price = (_c = other == null ? void 0 : other.option) == null ? void 0 : _c.reduce((pre, cur) => {
|
169
|
+
return pre + Number(cur.price) * Number(cur.num);
|
170
|
+
}, price);
|
171
|
+
}
|
172
|
+
return price;
|
173
|
+
};
|
174
|
+
var formatMetaData = (item) => {
|
175
|
+
var _a, _b, _c, _d, _e;
|
176
|
+
let metadata = {};
|
177
|
+
if ((_a = item._extend) == null ? void 0 : _a.capacity) {
|
178
|
+
metadata.capacity = item._extend.capacity;
|
179
|
+
}
|
180
|
+
if (item._extend.groupId) {
|
181
|
+
metadata.groupId = item._extend.groupId;
|
182
|
+
}
|
183
|
+
if ((_b = item._extend) == null ? void 0 : _b.holder_id) {
|
184
|
+
metadata.holder_id = (_c = item._extend) == null ? void 0 : _c.holder_id;
|
185
|
+
}
|
186
|
+
if ((_d = item._extend) == null ? void 0 : _d.multiDayPrices) {
|
187
|
+
metadata.multiDayPrices = (_e = item._extend) == null ? void 0 : _e.multiDayPrices;
|
188
|
+
}
|
189
|
+
return metadata;
|
190
|
+
};
|
191
|
+
var formatProducts = (item) => {
|
192
|
+
var _a, _b, _c, _d, _e, _f;
|
193
|
+
const total = Number(item._extend.total);
|
194
|
+
const origin_total = Number(item._extend.origin_total);
|
195
|
+
const discount_amount = origin_total - total;
|
196
|
+
const discount_type = discount_amount < 0 ? "change_price" : "discount";
|
197
|
+
return {
|
198
|
+
"num": item._extend.quantity,
|
199
|
+
"price": formatProductPrice(item),
|
200
|
+
"product_id": (item == null ? void 0 : item.product_id) || item.id,
|
201
|
+
"discount_amount": discount_amount,
|
202
|
+
"product_discount_reason": item._extend.discount_reason || "",
|
203
|
+
"is_charge_tax": item.is_charge_tax,
|
204
|
+
"note": (item == null ? void 0 : item.note) || "",
|
205
|
+
"discountway": item._extend.discountway || "num",
|
206
|
+
"discount_per": item._extend.discount_per,
|
207
|
+
"discount_type": item._extend.discount_type || discount_type,
|
208
|
+
"order_detail_id": item._extend.order_detail_id || 0,
|
209
|
+
"product_bundle": formatProductBundle((_b = (_a = item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle),
|
210
|
+
"bundle_edit": item._extend.bundle_edit,
|
211
|
+
"product_option_item": formatProductOption((_d = (_c = item._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.option),
|
212
|
+
"product_variant_id": ((_f = (_e = item._extend) == null ? void 0 : _e.other) == null ? void 0 : _f.product_variant_id) || 0,
|
213
|
+
metadata: formatMetaData(item)
|
214
|
+
};
|
215
|
+
};
|
216
|
+
var formatAppointmentProductLists = (data) => {
|
217
|
+
var _a;
|
218
|
+
try {
|
219
|
+
let list = data.service.value;
|
220
|
+
list = list.filter((item) => {
|
221
|
+
var _a2;
|
222
|
+
return ((_a2 = item._extend) == null ? void 0 : _a2.holder_id) && import_status.appointmentTypes.includes(item.extension_type);
|
223
|
+
});
|
224
|
+
const groupMap = /* @__PURE__ */ new Map();
|
225
|
+
list.forEach((item) => {
|
226
|
+
var _a2;
|
227
|
+
const key = (_a2 = item._extend) == null ? void 0 : _a2.holder_id;
|
228
|
+
if (!groupMap.has(key)) {
|
229
|
+
groupMap.set(key, []);
|
230
|
+
}
|
231
|
+
groupMap.get(key).push(item);
|
232
|
+
});
|
233
|
+
const result = (_a = Array.from(groupMap.values())) == null ? void 0 : _a.reduce((acc, group) => acc.concat(group), []);
|
234
|
+
return list || [];
|
235
|
+
} catch (error) {
|
236
|
+
}
|
237
|
+
};
|
238
|
+
var formatBookings = (data, values) => {
|
239
|
+
const isDay = (0, import_utils4.isDaysBooking)(data);
|
240
|
+
const isEvent = (0, import_utils4.isEventBooking)(data);
|
241
|
+
let list = data.service.value;
|
242
|
+
if (isDay) {
|
243
|
+
list = formatAppointmentProductLists(data);
|
244
|
+
}
|
245
|
+
if (isEvent) {
|
246
|
+
list = list.filter((d) => {
|
247
|
+
var _a;
|
248
|
+
return (_a = d._extend) == null ? void 0 : _a.holder_id;
|
249
|
+
});
|
250
|
+
}
|
251
|
+
let dayParams = {
|
252
|
+
relation_products: []
|
253
|
+
};
|
146
254
|
const eventOtherParams = data.eventOtherParams;
|
147
255
|
let bookings = [];
|
148
256
|
bookings = list.map((item) => {
|
149
|
-
var _a, _b;
|
150
|
-
|
151
|
-
|
152
|
-
|
257
|
+
var _a, _b, _c, _d;
|
258
|
+
let start_date = item._extend.startDate.format("YYYY-MM-DD");
|
259
|
+
let end_date = item._extend.endDate.format("YYYY-MM-DD");
|
260
|
+
let end_time = item._extend.endDate.format("HH:mm");
|
153
261
|
let start_time = item._extend.startDate.format("HH:mm");
|
154
262
|
if ((0, import_utils.isNowTime)(item._extend.start_time)) {
|
155
263
|
start_time = (0, import_utils.getNowTime)();
|
156
264
|
}
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
265
|
+
if (isDay) {
|
266
|
+
const startDate = ((_a = item._extend) == null ? void 0 : _a.startDate) || ((_b = item._extend) == null ? void 0 : _b.start_date);
|
267
|
+
const endDate = ((_c = item._extend) == null ? void 0 : _c.endDate) || ((_d = item._extend) == null ? void 0 : _d.end_date);
|
268
|
+
const { startDateTime, endDateTime } = (0, import_utils4.formatDayTime)({ startDate, endDate });
|
269
|
+
start_date = (0, import_dayjs.default)(startDateTime).format("YYYY-MM-DD");
|
270
|
+
start_time = (0, import_dayjs.default)(startDateTime).format("HH:mm");
|
271
|
+
end_date = (0, import_dayjs.default)(endDateTime).format("YYYY-MM-DD");
|
272
|
+
end_time = (0, import_dayjs.default)(endDateTime).format("HH:mm");
|
273
|
+
dayParams.relation_products = (item == null ? void 0 : item.relation_products) || [];
|
274
|
+
dayParams.holder = formatHolders(data, item, values);
|
275
|
+
dayParams.duration = (0, import_utils3.getDays)({ _extend: { start_date: startDateTime, end_date: endDateTime } }, "minutes");
|
276
|
+
}
|
277
|
+
if (isEvent) {
|
278
|
+
dayParams.holder = formatHolders(data, item, values);
|
279
|
+
}
|
161
280
|
return {
|
162
|
-
"product":
|
163
|
-
"num": item._extend.quantity,
|
164
|
-
"price": item._extend.price,
|
165
|
-
"product_id": item.id,
|
166
|
-
"discount_amount": discount_amount,
|
167
|
-
"product_discount_reason": item._extend.discount_reason || "",
|
168
|
-
"is_charge_tax": item.is_charge_tax,
|
169
|
-
"note": "",
|
170
|
-
"discountway": item._extend.discountway || "num",
|
171
|
-
"discount_per": item._extend.discount_per,
|
172
|
-
"discount_type": item._extend.discount_type || discount_type,
|
173
|
-
"order_detail_id": item._extend.order_detail_id || 0,
|
174
|
-
"product_bundle": formatProductBundle((_b = (_a = item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle),
|
175
|
-
"bundle_edit": item._extend.bundle_edit
|
176
|
-
},
|
281
|
+
"product": formatProducts(item),
|
177
282
|
"relation_products": formatRelationDetails(item._extend.relation_details),
|
178
283
|
"id": item.booking_id || 0,
|
179
284
|
"relation_id": item._extend.relation_id || 0,
|
@@ -182,22 +287,35 @@ var formatBookings = (data) => {
|
|
182
287
|
"is_all": false,
|
183
288
|
"schedule_id": item._extend.schedule_id || 0,
|
184
289
|
"end_time": end_time,
|
185
|
-
"sub_type": getSubType(item),
|
290
|
+
"sub_type": isDay ? "days" : getSubType(item),
|
186
291
|
"select_date": start_date,
|
187
292
|
"start_time": start_time,
|
188
293
|
"end_date": end_date,
|
189
294
|
"start_date": start_date,
|
190
|
-
"duration": import_utils.flexibleObj.getValue(item._extend.duration),
|
295
|
+
"duration": isDay ? 0 : import_utils.flexibleObj.getValue(item._extend.duration),
|
191
296
|
"number": item._extend.capacity ? (0, import_utilsByBooking.getSumCapacity)({ cacheItem: item }) : item._extend.number || 1,
|
192
297
|
"resources": formatResource(item),
|
193
|
-
"metadata": item
|
194
|
-
|
195
|
-
|
196
|
-
...eventOtherParams || {}
|
298
|
+
"metadata": formatMetaData(item),
|
299
|
+
...eventOtherParams || {},
|
300
|
+
...dayParams
|
197
301
|
};
|
198
302
|
});
|
303
|
+
debugger;
|
199
304
|
return bookings;
|
200
305
|
};
|
306
|
+
var formatRelationProducts = (data) => {
|
307
|
+
var _a;
|
308
|
+
let list = ((_a = data.service) == null ? void 0 : _a.value) || [];
|
309
|
+
list = list.filter((item) => {
|
310
|
+
var _a2;
|
311
|
+
return !((_a2 = item._extend) == null ? void 0 : _a2.holder_id);
|
312
|
+
});
|
313
|
+
let relationProducts = [];
|
314
|
+
relationProducts = list.map((item) => {
|
315
|
+
return formatProducts(item);
|
316
|
+
});
|
317
|
+
return relationProducts || [];
|
318
|
+
};
|
201
319
|
var formatHolder = (state, values) => {
|
202
320
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
203
321
|
const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
|
@@ -224,9 +342,13 @@ var formatValues = (state) => {
|
|
224
342
|
bookings: [],
|
225
343
|
customer_id: 1,
|
226
344
|
customer_name: "",
|
227
|
-
holder: {}
|
345
|
+
holder: {},
|
346
|
+
relation_products: [],
|
347
|
+
metadata: {}
|
228
348
|
};
|
229
|
-
|
349
|
+
const isDay = (0, import_utils4.isDaysBooking)(state);
|
350
|
+
const isEvent = (0, import_utils4.isEventBooking)(state);
|
351
|
+
if (!state.bookingId || isDay) {
|
230
352
|
values.shop_note = formatNote(state);
|
231
353
|
}
|
232
354
|
if (state.bookingId) {
|
@@ -242,12 +364,21 @@ var formatValues = (state) => {
|
|
242
364
|
...customer
|
243
365
|
};
|
244
366
|
values.holder = formatHolder(state, values);
|
245
|
-
|
367
|
+
if (isDay) {
|
368
|
+
values.relation_products = formatRelationProducts(state);
|
369
|
+
}
|
370
|
+
if (isEvent) {
|
371
|
+
values.relation_products = formatRelationProducts(state);
|
372
|
+
}
|
373
|
+
values.bookings = formatBookings(state, values);
|
246
374
|
if (((_c = (_b = values == null ? void 0 : values.bookings) == null ? void 0 : _b[0]) == null ? void 0 : _c.select_date) && !(state == null ? void 0 : state.bookingId)) {
|
247
375
|
let startTime = `${(_e = (_d = values == null ? void 0 : values.bookings) == null ? void 0 : _d[0]) == null ? void 0 : _e.start_time}`;
|
248
376
|
startTime = `${startTime || "00:00"}:00`;
|
249
377
|
values.schedule_date = `${values.bookings[0].select_date} ${startTime}`;
|
250
378
|
}
|
379
|
+
if (isDay) {
|
380
|
+
values.metadata.is_multiday_appointment = 1;
|
381
|
+
}
|
251
382
|
return values;
|
252
383
|
};
|
253
384
|
// Annotate the CommonJS export names for ESM import in node:
|
File without changes
|
File without changes
|
@@ -49,6 +49,11 @@ var AddServiceVariant = (props) => {
|
|
49
49
|
service: { ...stateRef.current.service, ...payload }
|
50
50
|
});
|
51
51
|
}
|
52
|
+
if (type === "setDate") {
|
53
|
+
setGlobalState({
|
54
|
+
date: { ...stateRef.current.date, ...payload }
|
55
|
+
});
|
56
|
+
}
|
52
57
|
};
|
53
58
|
let Cpt = import_addService.default;
|
54
59
|
if ((0, import_utils.isBooking4Shop)(
|
@@ -19,6 +19,7 @@ interface SelectDrawerProps {
|
|
19
19
|
modalOpen: boolean;
|
20
20
|
franchiseeLoading?: number;
|
21
21
|
showHeader?: boolean;
|
22
|
+
showWalkIn?: boolean;
|
22
23
|
}
|
23
24
|
declare const _default: React.ForwardRefExoticComponent<SelectDrawerProps & React.RefAttributes<unknown>>;
|
24
25
|
export default _default;
|
@@ -108,12 +108,16 @@ var SelectDrawer = (props, ref) => {
|
|
108
108
|
handleAddPet,
|
109
109
|
modalOpen,
|
110
110
|
franchiseeLoading,
|
111
|
-
showHeader
|
111
|
+
showHeader,
|
112
|
+
showWalkIn
|
112
113
|
} = props;
|
113
114
|
const form = (formData == null ? void 0 : formData[0]) || {};
|
114
115
|
const valList = (childrenValue == null ? void 0 : childrenValue[form.id]) || defaultArr;
|
115
116
|
const [_value, setValue] = (0, import_react.useState)(valList);
|
116
117
|
const clientRef = (0, import_react.useRef)();
|
118
|
+
const searchRef = (0, import_react.useRef)();
|
119
|
+
const [open, setOpen] = (0, import_react.useState)(false);
|
120
|
+
const [search, setSearch] = (0, import_react.useState)("");
|
117
121
|
(0, import_react.useEffect)(() => {
|
118
122
|
setValue(
|
119
123
|
valList.map((item) => ({
|
@@ -121,10 +125,7 @@ var SelectDrawer = (props, ref) => {
|
|
121
125
|
id: item.id || item.form_record_id
|
122
126
|
}))
|
123
127
|
);
|
124
|
-
}, [valList]);
|
125
|
-
const searchRef = (0, import_react.useRef)();
|
126
|
-
const [open, setOpen] = (0, import_react.useState)(false);
|
127
|
-
const [search, setSearch] = (0, import_react.useState)("");
|
128
|
+
}, [valList, open]);
|
128
129
|
(0, import_react.useEffect)(() => {
|
129
130
|
if (!modalOpen) {
|
130
131
|
setOpen(false);
|
@@ -317,7 +318,7 @@ var SelectDrawer = (props, ref) => {
|
|
317
318
|
title: import_utils.locales.getText("pisell2.text.create-new-customer"),
|
318
319
|
onClick: handleAddClient
|
319
320
|
}
|
320
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
321
|
+
), showWalkIn ? /* @__PURE__ */ import_react.default.createElement(
|
321
322
|
ActionItem,
|
322
323
|
{
|
323
324
|
title: "Walk-In",
|
@@ -326,7 +327,7 @@ var SelectDrawer = (props, ref) => {
|
|
326
327
|
closeDrawer();
|
327
328
|
}
|
328
329
|
}
|
329
|
-
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { spinning: !!loading, delay: 500 }, !!options.length ? options.map((item) => {
|
330
|
+
) : null), /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { spinning: !!loading, delay: 500 }, !!options.length ? options.map((item) => {
|
330
331
|
var _a;
|
331
332
|
return /* @__PURE__ */ import_react.default.createElement(
|
332
333
|
"div",
|
@@ -32,32 +32,36 @@ __export(vertical_exports, {
|
|
32
32
|
default: () => vertical_default
|
33
33
|
});
|
34
34
|
module.exports = __toCommonJS(vertical_exports);
|
35
|
-
var import_react = __toESM(require("react"));
|
36
|
-
var import_User01 = __toESM(require("@pisell/icon/es/User01"));
|
37
35
|
var import_PlusCircle = __toESM(require("@pisell/icon/es/PlusCircle"));
|
38
|
-
var
|
36
|
+
var import_User01 = __toESM(require("@pisell/icon/es/User01"));
|
39
37
|
var import_utils = require("@pisell/utils");
|
40
38
|
var import_ahooks = require("ahooks");
|
39
|
+
var import_antd = require("antd");
|
41
40
|
var import_classnames = __toESM(require("classnames"));
|
41
|
+
var import_react = __toESM(require("react"));
|
42
|
+
var import_pet = __toESM(require("../../pet"));
|
42
43
|
var import_useClientFn = __toESM(require("../hooks/useClientFn"));
|
43
44
|
var import_SelectDrawer = __toESM(require("./SelectDrawer"));
|
44
|
-
var import_pet = __toESM(require("../../pet"));
|
45
|
-
var import_index = require("./index.less");
|
46
45
|
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
47
46
|
var import_format = require("../../../forms/format");
|
48
|
-
var import_utils2 = require("
|
49
|
-
var
|
47
|
+
var import_utils2 = require("../../../utils");
|
48
|
+
var import_model = require("../../model");
|
49
|
+
var import_ChangePetModal = __toESM(require("../../pet/ChangePetModal"));
|
50
|
+
var import_utils3 = require("../../service2/utils");
|
51
|
+
var import_utils4 = require("../../utils");
|
52
|
+
var import_index = require("./index.less");
|
50
53
|
var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
51
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H;
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I;
|
52
55
|
const { globalState, setGlobalState } = props;
|
53
56
|
const modalRef = (0, import_react.useRef)();
|
54
57
|
const state = globalState;
|
55
58
|
const stateRef = (0, import_react.useRef)(state);
|
56
59
|
const prevCustomerId = (0, import_react.useRef)(null);
|
60
|
+
const changePetRef = (0, import_react.useRef)(null);
|
57
61
|
const context = (0, import_useEngineContext.default)();
|
58
62
|
const [isHasFormRecord, setIsHasFormRecord] = (0, import_react.useState)(true);
|
59
63
|
const isFranchisee = (_d = (_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.businessUtils) == null ? void 0 : _c.getAppByModal) == null ? void 0 : _d.call(_c, "franchisee");
|
60
|
-
|
64
|
+
import_utils2.request.setRequest(context.appHelper.utils.request);
|
61
65
|
state.isFranchisee = isFranchisee;
|
62
66
|
stateRef.current = state;
|
63
67
|
const {
|
@@ -88,9 +92,10 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
88
92
|
});
|
89
93
|
}
|
90
94
|
});
|
95
|
+
console.log("state.modalOpen", state.modalOpen);
|
91
96
|
const renderList = (0, import_react.useMemo)(() => {
|
92
97
|
let _list = [...state.client.clients];
|
93
|
-
return (0,
|
98
|
+
return (0, import_utils4.moveItemToFront)(_list, state.client.value.id);
|
94
99
|
}, [state.client.clients, state.client.value.id]);
|
95
100
|
const handleClose = () => {
|
96
101
|
setTimeout(() => {
|
@@ -108,6 +113,14 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
108
113
|
}
|
109
114
|
});
|
110
115
|
}
|
116
|
+
if (type === "setService") {
|
117
|
+
setGlobalState({
|
118
|
+
service: {
|
119
|
+
...stateRef.current.service,
|
120
|
+
...payload
|
121
|
+
}
|
122
|
+
});
|
123
|
+
}
|
111
124
|
};
|
112
125
|
const boardConfig = (0, import_react.useMemo)(() => {
|
113
126
|
var _a2, _b2, _c2;
|
@@ -128,6 +141,18 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
128
141
|
state == null ? void 0 : state.modalOpen
|
129
142
|
]);
|
130
143
|
const handleSelectPet = (val) => {
|
144
|
+
var _a2, _b2;
|
145
|
+
if ((0, import_utils3.isDayBooking)(state)) {
|
146
|
+
const { ids, lists } = (0, import_utils3.isOpenDeletePet)(state, val);
|
147
|
+
if ((ids == null ? void 0 : ids.length) > 0 && (lists == null ? void 0 : lists.length) > 0) {
|
148
|
+
(_b2 = changePetRef.current) == null ? void 0 : _b2.open({
|
149
|
+
ids,
|
150
|
+
setGlobalState,
|
151
|
+
service: ((_a2 = state.service) == null ? void 0 : _a2.value) || [],
|
152
|
+
state
|
153
|
+
});
|
154
|
+
}
|
155
|
+
}
|
131
156
|
setGlobalState({
|
132
157
|
pet: {
|
133
158
|
...state.pet,
|
@@ -259,7 +284,7 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
259
284
|
}, [isWalkIn, formId, (_q = state.client.value) == null ? void 0 : _q.id, currentPetValue, boardConfig]);
|
260
285
|
const petRender = (0, import_react.useMemo)(() => {
|
261
286
|
var _a2, _b2, _c2;
|
262
|
-
if ((state == null ? void 0 : state.disabledEdit) || boardConfig.type !== "form") {
|
287
|
+
if (((state == null ? void 0 : state.disabledEdit) || boardConfig.type !== "form") && !(0, import_utils3.isDayBooking)(state)) {
|
263
288
|
return null;
|
264
289
|
}
|
265
290
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !(currentPetValue == null ? void 0 : currentPetValue.length) && !isHasFormRecord && !isWalkIn && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
@@ -324,7 +349,8 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
324
349
|
handleAddPet,
|
325
350
|
currentPetValue,
|
326
351
|
formId,
|
327
|
-
(_x = (_w = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _w.holder) == null ? void 0 : _x.data_range
|
352
|
+
(_x = (_w = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _w.holder) == null ? void 0 : _x.data_range,
|
353
|
+
(_y = state.service) == null ? void 0 : _y.value
|
328
354
|
]);
|
329
355
|
const handleOpenClient = () => {
|
330
356
|
if (!isWalkIn || (state == null ? void 0 : state.disableEventBookingEdit)) {
|
@@ -340,6 +366,54 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
340
366
|
setSearch: (_b2 = modalRef.current) == null ? void 0 : _b2.setSearch
|
341
367
|
};
|
342
368
|
});
|
369
|
+
const isOpenDeleteProduct = (0, import_react.useMemo)(() => {
|
370
|
+
if (!(0, import_utils3.isDayBooking)(state)) return false;
|
371
|
+
const pets = (0, import_utils3.getPets)(state);
|
372
|
+
const appointmentServices = (0, import_utils3.getAppointmentService)(state);
|
373
|
+
if ((pets == null ? void 0 : pets.length) && ((appointmentServices == null ? void 0 : appointmentServices.length) || (0, import_utils3.isEventBooking)(state))) {
|
374
|
+
return true;
|
375
|
+
}
|
376
|
+
return false;
|
377
|
+
}, [state]);
|
378
|
+
const _handleSelectClient = async (e) => {
|
379
|
+
var _a2, _b2, _c2, _d2, _e2;
|
380
|
+
handleSelectClient(e);
|
381
|
+
if ((0, import_utils3.isDayBooking)(state)) {
|
382
|
+
let _value = (e == null ? void 0 : e[e.length - 1]) || import_model.walkInData;
|
383
|
+
if (_value.loading) {
|
384
|
+
return;
|
385
|
+
}
|
386
|
+
if ((0, import_utils3.isDayBooking)(state) && ((_b2 = (_a2 = state == null ? void 0 : state.service) == null ? void 0 : _a2.value) == null ? void 0 : _b2.length) > 0 && ((_c2 = state.client.value) == null ? void 0 : _c2.id) !== (_value == null ? void 0 : _value.id)) {
|
387
|
+
const _state = {
|
388
|
+
...state,
|
389
|
+
client: {
|
390
|
+
...state.client,
|
391
|
+
value: {
|
392
|
+
..._value,
|
393
|
+
name: getNickname(_value)
|
394
|
+
}
|
395
|
+
}
|
396
|
+
};
|
397
|
+
if (isOpenDeleteProduct) {
|
398
|
+
(_e2 = changePetRef.current) == null ? void 0 : _e2.open({
|
399
|
+
setGlobalState,
|
400
|
+
service: ((_d2 = state.service) == null ? void 0 : _d2.value) || [],
|
401
|
+
state,
|
402
|
+
source: "changeClient"
|
403
|
+
});
|
404
|
+
}
|
405
|
+
const services = await (0, import_utils3.updateServicePrice)(_state);
|
406
|
+
console.log(services, state, _value, isOpenDeleteProduct, "wh98797686");
|
407
|
+
setGlobalState({
|
408
|
+
service: {
|
409
|
+
...stateRef.current.service,
|
410
|
+
value: services,
|
411
|
+
edit: true
|
412
|
+
}
|
413
|
+
});
|
414
|
+
}
|
415
|
+
}
|
416
|
+
};
|
343
417
|
return /* @__PURE__ */ import_react.default.createElement(
|
344
418
|
"div",
|
345
419
|
{
|
@@ -359,11 +433,11 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
359
433
|
import_antd.Avatar,
|
360
434
|
{
|
361
435
|
className: "pisell-lowcode__booking-client-avatar",
|
362
|
-
src: import_utils.image.ali((
|
436
|
+
src: import_utils.image.ali((_z = state.client.value) == null ? void 0 : _z.cover, 100),
|
363
437
|
size: 64,
|
364
438
|
icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
|
365
439
|
}
|
366
|
-
), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, import_utils.locales.getText("pisell2.text.add-client")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in"))) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, getNickname(state.client.value)), ((
|
440
|
+
), isWalkIn ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-info-desc" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, import_utils.locales.getText("pisell2.text.add-client")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, import_utils.locales.getText("pisell2.text.leave-empty-for-walk-in"))) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-title" }, getNickname(state.client.value)), ((_A = state.client.value) == null ? void 0 : _A.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_B = state.client.value) == null ? void 0 : _B.email) : null, ((_C = state.client.value) == null ? void 0 : _C.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_D = state.client.value) == null ? void 0 : _D.phone) : null), !isWalkIn && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-action-wrap" }, !state.disabledEdit && /* @__PURE__ */ import_react.default.createElement(
|
367
441
|
import_antd.Dropdown.Button,
|
368
442
|
{
|
369
443
|
menu: {
|
@@ -414,24 +488,26 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
414
488
|
showHeader: !state.isBookingCreatePage,
|
415
489
|
modalOpen: state.modalOpen,
|
416
490
|
loading,
|
417
|
-
autoFocus: !((
|
491
|
+
autoFocus: !((_G = (_F = (_E = context == null ? void 0 : context.appHelper) == null ? void 0 : _E.utils) == null ? void 0 : _F.isTerminal) == null ? void 0 : _G.call(_F)),
|
418
492
|
ref: modalRef,
|
419
493
|
onClose: handleClose,
|
420
|
-
handleSelectClient,
|
494
|
+
handleSelectClient: _handleSelectClient,
|
421
495
|
handleCreateItem,
|
422
496
|
childrenValue: state.pet.value,
|
423
497
|
handleSelectPet,
|
424
498
|
formData: state.pet.formData,
|
425
499
|
searchChange,
|
426
500
|
options: renderList,
|
427
|
-
holder: (
|
428
|
-
client: (
|
501
|
+
holder: (_H = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _H.holder,
|
502
|
+
client: (_I = state == null ? void 0 : state.client) == null ? void 0 : _I.value,
|
429
503
|
loadMore,
|
430
504
|
showPet: (boardConfig == null ? void 0 : boardConfig.type) === "form",
|
431
505
|
handleAddPet,
|
432
|
-
franchiseeLoading
|
506
|
+
franchiseeLoading,
|
507
|
+
showWalkIn: !(0, import_utils3.isDayBooking)(state)
|
433
508
|
}
|
434
|
-
)
|
509
|
+
),
|
510
|
+
/* @__PURE__ */ import_react.default.createElement(import_ChangePetModal.default, { ref: changePetRef })
|
435
511
|
);
|
436
512
|
});
|
437
513
|
var vertical_default = VerticalClient;
|