@pisell/private-materials 3.0.214 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +146 -146
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +27 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +33 -18
- package/es/components/booking/components/customSelect/index.d.ts +0 -1
- package/es/components/booking/components/customSelect/index.js +2 -6
- package/es/components/booking/components/footer/amount.js +22 -46
- package/es/components/booking/components/footer/index.js +79 -116
- package/es/components/booking/components/footer/serve.d.ts +0 -2
- package/es/components/booking/components/footer/serve.js +0 -44
- package/es/components/booking/components/footer/utils.js +68 -282
- package/es/components/booking/info/addServiceVariant/index.js +1 -8
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +13 -14
- package/es/components/booking/info/clientVariant/vertical/index.js +15 -131
- package/es/components/booking/info/main.js +28 -44
- package/es/components/booking/info/model.js +0 -3
- package/es/components/booking/info/pet/index.d.ts +1 -1
- package/es/components/booking/info/pet/index.js +35 -94
- package/es/components/booking/info/service/addService/index.js +104 -195
- package/es/components/booking/info/service/addService/index.less +3 -13
- package/es/components/booking/info/service/addService/utils.d.ts +2 -12
- package/es/components/booking/info/service/addService/utils.js +26 -103
- package/es/components/booking/info/service/editService/index.js +142 -450
- package/es/components/booking/info/service/editService/index.less +13 -18
- package/es/components/booking/info/service/serve.d.ts +0 -10
- package/es/components/booking/info/service/serve.js +0 -28
- package/es/components/booking/info/utils.d.ts +0 -20
- package/es/components/booking/info/utils.js +1 -38
- package/es/components/booking/info2/utilsByBooking.js +1 -0
- package/es/components/booking/locales.d.ts +0 -66
- package/es/components/booking/locales.js +3 -81
- package/es/components/booking/model.d.ts +1 -5
- package/es/components/booking/model.js +2 -4
- package/es/components/booking/utils.d.ts +3 -12
- package/es/components/booking/utils.js +26 -143
- package/es/components/eftpos/hooks.d.ts +4 -4
- package/es/components/eftposPay/amount.d.ts +1 -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/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/es/components/eftposPay/windcave/helper.d.ts +1 -1
- package/es/components/eftposPay/windcave/windcave.js +60 -27
- package/es/components/tabProduct/tabs/index.less +3 -13
- package/es/index.d.ts +0 -13
- package/es/index.js +1 -14
- package/lib/components/booking/components/customSelect/index.d.ts +0 -1
- package/lib/components/booking/components/customSelect/index.js +2 -6
- package/lib/components/booking/components/footer/amount.js +8 -27
- package/lib/components/booking/components/footer/index.js +55 -50
- package/lib/components/booking/components/footer/serve.d.ts +0 -2
- package/lib/components/booking/components/footer/serve.js +0 -12
- package/lib/components/booking/components/footer/utils.js +53 -167
- package/lib/components/booking/info/addServiceVariant/index.js +0 -5
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +7 -8
- package/lib/components/booking/info/clientVariant/vertical/index.js +20 -97
- package/lib/components/booking/info/main.js +21 -32
- package/lib/components/booking/info/model.js +0 -3
- package/lib/components/booking/info/pet/index.d.ts +1 -1
- package/lib/components/booking/info/pet/index.js +44 -91
- package/lib/components/booking/info/service/addService/index.js +101 -132
- package/lib/components/booking/info/service/addService/index.less +3 -13
- package/lib/components/booking/info/service/addService/utils.d.ts +2 -12
- package/lib/components/booking/info/service/addService/utils.js +10 -58
- package/lib/components/booking/info/service/editService/index.js +197 -447
- package/lib/components/booking/info/service/editService/index.less +13 -18
- package/lib/components/booking/info/service/serve.d.ts +0 -10
- package/lib/components/booking/info/service/serve.js +2 -7
- package/lib/components/booking/info/utils.d.ts +0 -20
- package/lib/components/booking/info/utils.js +1 -42
- package/lib/components/booking/locales.d.ts +0 -66
- package/lib/components/booking/locales.js +3 -69
- package/lib/components/booking/model.d.ts +1 -5
- package/lib/components/booking/model.js +2 -4
- package/lib/components/booking/utils.d.ts +3 -12
- package/lib/components/booking/utils.js +18 -89
- package/lib/components/eftpos/hooks.d.ts +4 -4
- package/lib/components/eftposPay/amount.d.ts +1 -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/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/lib/components/eftposPay/windcave/helper.d.ts +1 -1
- package/lib/components/eftposPay/windcave/windcave.js +28 -11
- package/lib/components/tabProduct/tabs/index.less +3 -13
- package/lib/index.d.ts +0 -13
- package/lib/index.js +0 -39
- package/package.json +4 -4
- package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/es/businessModel/SalesModel/Sales/index.js +0 -69
- package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/es/businessModel/SalesModel/hooks/index.js +0 -7
- package/es/businessModel/SalesModel/index.d.ts +0 -4
- package/es/businessModel/SalesModel/index.js +0 -18
- package/es/businessModel/index.d.ts +0 -0
- package/es/businessModel/index.js +0 -0
- package/es/components/Sales/Cart/index.d.ts +0 -53
- package/es/components/Sales/Cart/index.js +0 -591
- package/es/components/Sales/Cart/serve.d.ts +0 -2
- package/es/components/Sales/Cart/serve.js +0 -11
- package/es/components/Sales/Cart/types.d.ts +0 -19
- package/es/components/Sales/Cart/types.js +0 -1
- package/es/components/Sales/Checkout/index.d.ts +0 -33
- package/es/components/Sales/Checkout/index.js +0 -149
- package/es/components/Sales/Checkout/serve.d.ts +0 -2
- package/es/components/Sales/Checkout/serve.js +0 -11
- package/es/components/Sales/Checkout/utils.d.ts +0 -27
- package/es/components/Sales/Checkout/utils.js +0 -104
- package/es/components/Sales/Customer/index.d.ts +0 -24
- package/es/components/Sales/Customer/index.js +0 -56
- package/es/components/Sales/Event/Detail.d.ts +0 -27
- package/es/components/Sales/Event/Detail.js +0 -244
- package/es/components/Sales/Event/index.d.ts +0 -30
- package/es/components/Sales/Event/index.js +0 -121
- package/es/components/Sales/Event/serve.d.ts +0 -26
- package/es/components/Sales/Event/serve.js +0 -33
- package/es/components/Sales/Holder/index.d.ts +0 -33
- package/es/components/Sales/Holder/index.js +0 -226
- package/es/components/Sales/Holder/serve.d.ts +0 -8
- package/es/components/Sales/Holder/serve.js +0 -20
- package/es/components/Sales/Init/index.d.ts +0 -24
- package/es/components/Sales/Init/index.js +0 -114
- package/es/components/Sales/Init/serve.d.ts +0 -3
- package/es/components/Sales/Init/serve.js +0 -11
- package/es/components/Sales/Resource/index.d.ts +0 -26
- package/es/components/Sales/Resource/index.js +0 -126
- package/es/components/Sales/Resource/serve.d.ts +0 -5
- package/es/components/Sales/Resource/serve.js +0 -8
- package/es/components/Sales/Step/index.d.ts +0 -37
- package/es/components/Sales/Step/index.js +0 -189
- package/es/components/Sales/Summary/index.d.ts +0 -25
- package/es/components/Sales/Summary/index.js +0 -47
- 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 +0 -36
- package/es/components/Sales/Summary/utils.js +0 -63
- package/es/components/Sales/hooks/index.d.ts +0 -1
- package/es/components/Sales/hooks/index.js +0 -3
- package/es/components/Sales/index.d.ts +0 -20
- package/es/components/Sales/index.js +0 -26
- package/es/components/Sales/utils/index.d.ts +0 -1
- package/es/components/Sales/utils/index.js +0 -18
- package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +0 -3
- package/es/components/booking/components/footer/AppointmentProductModal/index.js +0 -38
- package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/Provider.js +0 -54
- package/es/components/booking/info/dateRange/index.d.ts +0 -5
- package/es/components/booking/info/dateRange/index.js +0 -98
- package/es/components/booking/info/dateRange/index.less +0 -21
- package/es/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/es/components/booking/info/pet/ChangePetModal/index.js +0 -134
- package/es/components/booking/info/pet/ChangePetModal/index.less +0 -4
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -5
- package/es/components/booking/info/service/editService/BookingList/index.js +0 -39
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/es/components/booking/info/service/editService/EditTabs/index.js +0 -35
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/es/components/booking/info/service/serviceManager/distributeDiscount.js +0 -55
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service/serviceManager/index.js +0 -281
- 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 +0 -14
- package/es/components/booking/info/service2/Group/utils.js +0 -146
- package/es/components/booking/info/service2/Lists.d.ts +0 -3
- package/es/components/booking/info/service2/Lists.js +0 -153
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/es/components/booking/info/service2/hooks/useSelectPet.js +0 -54
- package/es/components/booking/info/service2/index.d.ts +0 -6
- package/es/components/booking/info/service2/index.js +0 -57
- package/es/components/booking/info/service2/status.d.ts +0 -31
- package/es/components/booking/info/service2/status.js +0 -78
- package/es/components/booking/info/service2/utils.d.ts +0 -240
- package/es/components/booking/info/service2/utils.js +0 -1077
- package/es/components/booking/materiels/holder/index.d.ts +0 -7
- package/es/components/booking/materiels/holder/index.js +0 -51
- package/es/components/eventBooking/assets/alert-circle.png +0 -0
- package/es/components/eventBooking/assets/calendar-heart.svg +0 -5
- package/es/components/eventBooking/assets/compass.svg +0 -13
- package/es/components/eventBooking/assets/image.svg +0 -5
- package/es/components/eventBooking/assets/phone.svg +0 -5
- package/es/components/eventBooking/assets/shopping-cart.svg +0 -10
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -4
- package/es/components/eventBooking/components/ErrorTip/index.js +0 -14
- package/es/components/eventBooking/components/ErrorTip/index.less +0 -51
- package/es/components/eventBooking/components/OpenCard/index.d.ts +0 -4
- package/es/components/eventBooking/components/OpenCard/index.js +0 -65
- package/es/components/eventBooking/components/OpenCard/index.less +0 -52
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +0 -274
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +0 -46
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +0 -63
- package/es/components/eventBooking/components/Provider/Cart/Item/index.less +0 -87
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Cart/index.js +0 -30
- package/es/components/eventBooking/components/Provider/Cart/index.less +0 -2
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Content/index.js +0 -65
- package/es/components/eventBooking/components/Provider/Content/index.less +0 -31
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.js +0 -34
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Event/index.js +0 -93
- package/es/components/eventBooking/components/Provider/Event/index.less +0 -20
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Footer/index.js +0 -76
- package/es/components/eventBooking/components/Provider/Footer/index.less +0 -64
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Header/index.js +0 -75
- package/es/components/eventBooking/components/Provider/Header/index.less +0 -2
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Information/index.js +0 -178
- package/es/components/eventBooking/components/Provider/Information/index.less +0 -92
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.js +0 -34
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.js +0 -27
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Resource/index.js +0 -79
- package/es/components/eventBooking/components/Provider/Resource/index.less +0 -46
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/SelectHolderModal.js +0 -90
- 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/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -26
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -65
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -69
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -152
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -20
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -38
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -28
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -269
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -257
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -174
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.js +0 -36
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +0 -70
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +0 -38
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.js +0 -33
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +0 -30
- package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/eventBooking/components/bookingDetailModal/index.js +0 -355
- package/es/components/eventBooking/components/bookingDetailModal/index.less +0 -83
- package/es/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
- package/es/components/eventBooking/components/bookingServiceList/index.js +0 -52
- package/es/components/eventBooking/components/bookingServiceList/index.less +0 -6
- package/es/components/eventBooking/components/eventCard/index.d.ts +0 -14
- package/es/components/eventBooking/components/eventCard/index.js +0 -116
- package/es/components/eventBooking/components/eventCard/index.less +0 -81
- package/es/components/eventBooking/components/productCard/index.d.ts +0 -16
- package/es/components/eventBooking/components/productCard/index.js +0 -79
- package/es/components/eventBooking/components/productCard/index.less +0 -60
- package/es/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/es/components/eventBooking/components/progressBar/index.js +0 -93
- package/es/components/eventBooking/components/progressBar/index.less +0 -15
- package/es/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/es/components/eventBooking/components/resourceDisplay/index.js +0 -148
- package/es/components/eventBooking/components/resourceDisplay/index.less +0 -95
- package/es/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
- package/es/components/eventBooking/components/resourceUsability/index.js +0 -44
- package/es/components/eventBooking/components/resourceUsability/index.less +0 -40
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +0 -37
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +0 -127
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/es/components/eventBooking/components/scheduleCalendar/index.js +0 -142
- package/es/components/eventBooking/components/scheduleCalendar/index.less +0 -222
- package/es/components/eventBooking/components/selectHolder/index.d.ts +0 -22
- package/es/components/eventBooking/components/selectHolder/index.js +0 -118
- package/es/components/eventBooking/components/selectHolder/index.less +0 -70
- package/es/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/es/components/eventBooking/components/timeResourceSelector/index.js +0 -168
- package/es/components/eventBooking/components/timeResourceSelector/index.less +0 -74
- package/es/components/eventBooking/index.d.ts +0 -4
- package/es/components/eventBooking/index.js +0 -58
- package/es/components/eventBooking/index.less +0 -22
- package/es/components/eventBooking/locales.d.ts +0 -216
- package/es/components/eventBooking/locales.js +0 -251
- package/es/components/eventBooking/mock.d.ts +0 -627
- package/es/components/eventBooking/mock.js +0 -1172
- package/es/components/eventBooking/status.d.ts +0 -21
- package/es/components/eventBooking/status.js +0 -51
- package/es/components/eventBooking/type.d.ts +0 -17
- package/es/components/eventBooking/type.js +0 -1
- package/es/components/eventBooking/utils.d.ts +0 -45
- package/es/components/eventBooking/utils.js +0 -99
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/Provider.js +0 -86
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -4
- package/es/components/shoppingCart/components/Cart/Product.js +0 -71
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Cart/index.js +0 -73
- package/es/components/shoppingCart/components/Cart/index.less +0 -68
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Empty/index.js +0 -15
- package/es/components/shoppingCart/components/Empty/index.less +0 -19
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Render/index.js +0 -70
- package/es/components/shoppingCart/components/Render/index.less +0 -2
- package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/es/components/shoppingCart/components/SelectHolderModal/index.js +0 -132
- package/es/components/shoppingCart/components/SelectHolderModal/index.less +0 -32
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useAddService.js +0 -23
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useClearCart.js +0 -60
- package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useContext.js +0 -5
- package/es/components/shoppingCart/index.d.ts +0 -4
- package/es/components/shoppingCart/index.js +0 -24
- package/es/components/shoppingCart/locales.d.ts +0 -33
- package/es/components/shoppingCart/locales.js +0 -38
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/mock.js +0 -40
- package/es/components/shoppingCart/status.d.ts +0 -2
- package/es/components/shoppingCart/status.js +0 -22
- package/es/components/shoppingCart/type.d.ts +0 -40
- package/es/components/shoppingCart/type.js +0 -1
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/shoppingCart/utils.js +0 -116
- package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/lib/businessModel/SalesModel/Sales/index.js +0 -104
- package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/hooks/index.js +0 -34
- package/lib/businessModel/SalesModel/index.d.ts +0 -4
- package/lib/businessModel/SalesModel/index.js +0 -51
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/businessModel/index.js +0 -0
- package/lib/components/Sales/Cart/index.d.ts +0 -53
- package/lib/components/Sales/Cart/index.js +0 -500
- package/lib/components/Sales/Cart/serve.d.ts +0 -2
- package/lib/components/Sales/Cart/serve.js +0 -37
- package/lib/components/Sales/Cart/types.d.ts +0 -19
- package/lib/components/Sales/Cart/types.js +0 -17
- package/lib/components/Sales/Checkout/index.d.ts +0 -33
- package/lib/components/Sales/Checkout/index.js +0 -130
- package/lib/components/Sales/Checkout/serve.d.ts +0 -2
- package/lib/components/Sales/Checkout/serve.js +0 -37
- package/lib/components/Sales/Checkout/utils.d.ts +0 -27
- package/lib/components/Sales/Checkout/utils.js +0 -88
- package/lib/components/Sales/Customer/index.d.ts +0 -24
- package/lib/components/Sales/Customer/index.js +0 -90
- package/lib/components/Sales/Event/Detail.d.ts +0 -27
- package/lib/components/Sales/Event/Detail.js +0 -224
- package/lib/components/Sales/Event/index.d.ts +0 -30
- package/lib/components/Sales/Event/index.js +0 -136
- package/lib/components/Sales/Event/serve.d.ts +0 -26
- package/lib/components/Sales/Event/serve.js +0 -54
- package/lib/components/Sales/Holder/index.d.ts +0 -33
- package/lib/components/Sales/Holder/index.js +0 -210
- package/lib/components/Sales/Holder/serve.d.ts +0 -8
- package/lib/components/Sales/Holder/serve.js +0 -37
- package/lib/components/Sales/Init/index.d.ts +0 -24
- package/lib/components/Sales/Init/index.js +0 -128
- package/lib/components/Sales/Init/serve.d.ts +0 -3
- package/lib/components/Sales/Init/serve.js +0 -34
- package/lib/components/Sales/Resource/index.d.ts +0 -26
- package/lib/components/Sales/Resource/index.js +0 -133
- package/lib/components/Sales/Resource/serve.d.ts +0 -5
- package/lib/components/Sales/Resource/serve.js +0 -32
- package/lib/components/Sales/Step/index.d.ts +0 -37
- package/lib/components/Sales/Step/index.js +0 -170
- package/lib/components/Sales/Summary/index.d.ts +0 -25
- package/lib/components/Sales/Summary/index.js +0 -83
- 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 +0 -36
- package/lib/components/Sales/Summary/utils.js +0 -80
- package/lib/components/Sales/hooks/index.d.ts +0 -1
- package/lib/components/Sales/hooks/index.js +0 -31
- package/lib/components/Sales/index.d.ts +0 -20
- package/lib/components/Sales/index.js +0 -79
- package/lib/components/Sales/utils/index.d.ts +0 -1
- package/lib/components/Sales/utils/index.js +0 -43
- package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +0 -3
- package/lib/components/booking/components/footer/AppointmentProductModal/index.js +0 -60
- package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/Provider.js +0 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -5
- package/lib/components/booking/info/dateRange/index.js +0 -111
- package/lib/components/booking/info/dateRange/index.less +0 -21
- package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +0 -4
- package/lib/components/booking/info/pet/ChangePetModal/index.js +0 -121
- package/lib/components/booking/info/pet/ChangePetModal/index.less +0 -4
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -5
- package/lib/components/booking/info/service/editService/BookingList/index.js +0 -55
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/lib/components/booking/info/service/editService/EditTabs/index.js +0 -75
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +0 -70
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service/serviceManager/index.js +0 -211
- 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 +0 -14
- package/lib/components/booking/info/service2/Group/utils.js +0 -142
- package/lib/components/booking/info/service2/Lists.d.ts +0 -3
- package/lib/components/booking/info/service2/Lists.js +0 -116
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +0 -50
- package/lib/components/booking/info/service2/index.d.ts +0 -6
- package/lib/components/booking/info/service2/index.js +0 -75
- package/lib/components/booking/info/service2/status.d.ts +0 -31
- package/lib/components/booking/info/service2/status.js +0 -81
- package/lib/components/booking/info/service2/utils.d.ts +0 -240
- package/lib/components/booking/info/service2/utils.js +0 -695
- package/lib/components/booking/materiels/holder/index.d.ts +0 -7
- package/lib/components/booking/materiels/holder/index.js +0 -65
- package/lib/components/eventBooking/assets/alert-circle.png +0 -0
- package/lib/components/eventBooking/assets/calendar-heart.svg +0 -5
- package/lib/components/eventBooking/assets/compass.svg +0 -13
- package/lib/components/eventBooking/assets/image.svg +0 -5
- package/lib/components/eventBooking/assets/phone.svg +0 -5
- package/lib/components/eventBooking/assets/shopping-cart.svg +0 -10
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -4
- package/lib/components/eventBooking/components/ErrorTip/index.js +0 -30
- package/lib/components/eventBooking/components/ErrorTip/index.less +0 -51
- package/lib/components/eventBooking/components/OpenCard/index.d.ts +0 -4
- package/lib/components/eventBooking/components/OpenCard/index.js +0 -90
- package/lib/components/eventBooking/components/OpenCard/index.less +0 -52
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +0 -159
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +0 -82
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +0 -92
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.less +0 -87
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Cart/index.js +0 -59
- package/lib/components/eventBooking/components/Provider/Cart/index.less +0 -2
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Content/index.js +0 -91
- package/lib/components/eventBooking/components/Provider/Content/index.less +0 -31
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.js +0 -60
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Event/index.js +0 -101
- package/lib/components/eventBooking/components/Provider/Event/index.less +0 -20
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Footer/index.js +0 -87
- package/lib/components/eventBooking/components/Provider/Footer/index.less +0 -64
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Header/index.js +0 -80
- package/lib/components/eventBooking/components/Provider/Header/index.less +0 -2
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Information/index.js +0 -151
- package/lib/components/eventBooking/components/Provider/Information/index.less +0 -92
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.js +0 -67
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.js +0 -57
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Resource/index.js +0 -90
- package/lib/components/eventBooking/components/Provider/Resource/index.less +0 -46
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.js +0 -97
- 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/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +0 -55
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +0 -25
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +0 -78
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -32
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +0 -86
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +0 -12
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -13
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +0 -121
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +0 -35
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +0 -37
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +0 -28
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +0 -58
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -87
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +0 -55
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +0 -25
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +0 -198
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +0 -119
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +0 -198
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +0 -122
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.js +0 -70
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.less +0 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +0 -71
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +0 -75
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.js +0 -66
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +0 -70
- package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +0 -272
- package/lib/components/eventBooking/components/bookingDetailModal/index.less +0 -83
- package/lib/components/eventBooking/components/bookingServiceList/index.d.ts +0 -17
- package/lib/components/eventBooking/components/bookingServiceList/index.js +0 -79
- package/lib/components/eventBooking/components/bookingServiceList/index.less +0 -6
- package/lib/components/eventBooking/components/eventCard/index.d.ts +0 -14
- package/lib/components/eventBooking/components/eventCard/index.js +0 -124
- package/lib/components/eventBooking/components/eventCard/index.less +0 -81
- package/lib/components/eventBooking/components/productCard/index.d.ts +0 -16
- package/lib/components/eventBooking/components/productCard/index.js +0 -78
- package/lib/components/eventBooking/components/productCard/index.less +0 -60
- package/lib/components/eventBooking/components/progressBar/index.d.ts +0 -16
- package/lib/components/eventBooking/components/progressBar/index.js +0 -100
- package/lib/components/eventBooking/components/progressBar/index.less +0 -15
- package/lib/components/eventBooking/components/resourceDisplay/index.d.ts +0 -23
- package/lib/components/eventBooking/components/resourceDisplay/index.js +0 -117
- package/lib/components/eventBooking/components/resourceDisplay/index.less +0 -95
- package/lib/components/eventBooking/components/resourceUsability/index.d.ts +0 -12
- package/lib/components/eventBooking/components/resourceUsability/index.js +0 -76
- package/lib/components/eventBooking/components/resourceUsability/index.less +0 -40
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +0 -73
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +0 -58
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -12
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +0 -135
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/lib/components/eventBooking/components/scheduleCalendar/index.js +0 -125
- package/lib/components/eventBooking/components/scheduleCalendar/index.less +0 -222
- package/lib/components/eventBooking/components/selectHolder/index.d.ts +0 -22
- package/lib/components/eventBooking/components/selectHolder/index.js +0 -106
- package/lib/components/eventBooking/components/selectHolder/index.less +0 -70
- package/lib/components/eventBooking/components/timeResourceSelector/index.d.ts +0 -20
- package/lib/components/eventBooking/components/timeResourceSelector/index.js +0 -146
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +0 -74
- package/lib/components/eventBooking/index.d.ts +0 -4
- package/lib/components/eventBooking/index.js +0 -79
- package/lib/components/eventBooking/index.less +0 -22
- package/lib/components/eventBooking/locales.d.ts +0 -216
- package/lib/components/eventBooking/locales.js +0 -239
- package/lib/components/eventBooking/mock.d.ts +0 -627
- package/lib/components/eventBooking/mock.js +0 -1352
- package/lib/components/eventBooking/status.d.ts +0 -21
- package/lib/components/eventBooking/status.js +0 -70
- package/lib/components/eventBooking/type.d.ts +0 -17
- package/lib/components/eventBooking/type.js +0 -17
- package/lib/components/eventBooking/utils.d.ts +0 -45
- package/lib/components/eventBooking/utils.js +0 -90
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/Provider.js +0 -110
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -4
- package/lib/components/shoppingCart/components/Cart/Product.js +0 -73
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Cart/index.js +0 -85
- package/lib/components/shoppingCart/components/Cart/index.less +0 -68
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Empty/index.js +0 -43
- package/lib/components/shoppingCart/components/Empty/index.less +0 -19
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Render/index.js +0 -75
- package/lib/components/shoppingCart/components/Render/index.less +0 -2
- package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/SelectHolderModal/index.js +0 -124
- package/lib/components/shoppingCart/components/SelectHolderModal/index.less +0 -32
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useAddService.js +0 -55
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useClearCart.js +0 -66
- package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useContext.js +0 -31
- package/lib/components/shoppingCart/index.d.ts +0 -4
- package/lib/components/shoppingCart/index.js +0 -60
- package/lib/components/shoppingCart/locales.d.ts +0 -33
- package/lib/components/shoppingCart/locales.js +0 -56
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/mock.js +0 -76
- package/lib/components/shoppingCart/status.d.ts +0 -2
- package/lib/components/shoppingCart/status.js +0 -60
- package/lib/components/shoppingCart/type.d.ts +0 -40
- package/lib/components/shoppingCart/type.js +0 -17
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/shoppingCart/utils.js +0 -86
- package/lowcode/event-booking/meta.ts +0 -69
- package/lowcode/event-booking-availability-calendar/meta.ts +0 -53
- package/lowcode/event-booking-detail-modal/meta.ts +0 -39
- package/lowcode/event-booking-service-list/meta.ts +0 -77
- package/lowcode/event-card/meta.ts +0 -77
- package/lowcode/event-product-card/meta.ts +0 -79
- package/lowcode/event-progress-bar/meta.ts +0 -65
- package/lowcode/event-resource-display/meta.ts +0 -169
- package/lowcode/event-resource-usability/meta.ts +0 -67
- package/lowcode/event-schedule-calendar/meta.ts +0 -56
- package/lowcode/event-select-holder/meta.ts +0 -84
- package/lowcode/event-time-resource-selector/meta.ts +0 -69
- package/lowcode/shopping-cart/meta.ts +0 -98
|
@@ -108,16 +108,12 @@ var SelectDrawer = (props, ref) => {
|
|
|
108
108
|
handleAddPet,
|
|
109
109
|
modalOpen,
|
|
110
110
|
franchiseeLoading,
|
|
111
|
-
showHeader
|
|
112
|
-
showWalkIn
|
|
111
|
+
showHeader
|
|
113
112
|
} = props;
|
|
114
113
|
const form = (formData == null ? void 0 : formData[0]) || {};
|
|
115
114
|
const valList = (childrenValue == null ? void 0 : childrenValue[form.id]) || defaultArr;
|
|
116
115
|
const [_value, setValue] = (0, import_react.useState)(valList);
|
|
117
116
|
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)("");
|
|
121
117
|
(0, import_react.useEffect)(() => {
|
|
122
118
|
setValue(
|
|
123
119
|
valList.map((item) => ({
|
|
@@ -125,7 +121,10 @@ var SelectDrawer = (props, ref) => {
|
|
|
125
121
|
id: item.id || item.form_record_id
|
|
126
122
|
}))
|
|
127
123
|
);
|
|
128
|
-
}, [valList
|
|
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)("");
|
|
129
128
|
(0, import_react.useEffect)(() => {
|
|
130
129
|
if (!modalOpen) {
|
|
131
130
|
setOpen(false);
|
|
@@ -318,7 +317,7 @@ var SelectDrawer = (props, ref) => {
|
|
|
318
317
|
title: import_utils.locales.getText("pisell2.text.create-new-customer"),
|
|
319
318
|
onClick: handleAddClient
|
|
320
319
|
}
|
|
321
|
-
),
|
|
320
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
322
321
|
ActionItem,
|
|
323
322
|
{
|
|
324
323
|
title: "Walk-In",
|
|
@@ -327,7 +326,7 @@ var SelectDrawer = (props, ref) => {
|
|
|
327
326
|
closeDrawer();
|
|
328
327
|
}
|
|
329
328
|
}
|
|
330
|
-
)
|
|
329
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { spinning: !!loading, delay: 500 }, !!options.length ? options.map((item) => {
|
|
331
330
|
var _a;
|
|
332
331
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
333
332
|
"div",
|
|
@@ -32,36 +32,32 @@ __export(vertical_exports, {
|
|
|
32
32
|
default: () => vertical_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(vertical_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_User01 = __toESM(require("@pisell/icon/es/User01"));
|
|
37
|
+
var import_PlusCircle = __toESM(require("@pisell/icon/es/PlusCircle"));
|
|
38
|
+
var import_antd = require("antd");
|
|
37
39
|
var import_utils = require("@pisell/utils");
|
|
38
40
|
var import_ahooks = require("ahooks");
|
|
39
|
-
var import_antd = require("antd");
|
|
40
41
|
var import_classnames = __toESM(require("classnames"));
|
|
41
|
-
var import_react = __toESM(require("react"));
|
|
42
|
-
var import_pet = __toESM(require("../../pet"));
|
|
43
42
|
var import_useClientFn = __toESM(require("../hooks/useClientFn"));
|
|
44
43
|
var import_SelectDrawer = __toESM(require("./SelectDrawer"));
|
|
44
|
+
var import_pet = __toESM(require("../../pet"));
|
|
45
|
+
var import_index = require("./index.less");
|
|
45
46
|
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
46
47
|
var import_format = require("../../../forms/format");
|
|
47
|
-
var import_utils2 = require("
|
|
48
|
-
var
|
|
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");
|
|
48
|
+
var import_utils2 = require("../../utils");
|
|
49
|
+
var import_utils3 = require("../../../utils");
|
|
53
50
|
var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
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
|
|
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;
|
|
55
52
|
const { globalState, setGlobalState } = props;
|
|
56
53
|
const modalRef = (0, import_react.useRef)();
|
|
57
54
|
const state = globalState;
|
|
58
55
|
const stateRef = (0, import_react.useRef)(state);
|
|
59
56
|
const prevCustomerId = (0, import_react.useRef)(null);
|
|
60
|
-
const changePetRef = (0, import_react.useRef)(null);
|
|
61
57
|
const context = (0, import_useEngineContext.default)();
|
|
62
58
|
const [isHasFormRecord, setIsHasFormRecord] = (0, import_react.useState)(true);
|
|
63
59
|
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");
|
|
64
|
-
|
|
60
|
+
import_utils3.request.setRequest(context.appHelper.utils.request);
|
|
65
61
|
state.isFranchisee = isFranchisee;
|
|
66
62
|
stateRef.current = state;
|
|
67
63
|
const {
|
|
@@ -92,10 +88,9 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
|
92
88
|
});
|
|
93
89
|
}
|
|
94
90
|
});
|
|
95
|
-
console.log("state.modalOpen", state.modalOpen);
|
|
96
91
|
const renderList = (0, import_react.useMemo)(() => {
|
|
97
92
|
let _list = [...state.client.clients];
|
|
98
|
-
return (0,
|
|
93
|
+
return (0, import_utils2.moveItemToFront)(_list, state.client.value.id);
|
|
99
94
|
}, [state.client.clients, state.client.value.id]);
|
|
100
95
|
const handleClose = () => {
|
|
101
96
|
setTimeout(() => {
|
|
@@ -113,14 +108,6 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
|
113
108
|
}
|
|
114
109
|
});
|
|
115
110
|
}
|
|
116
|
-
if (type === "setService") {
|
|
117
|
-
setGlobalState({
|
|
118
|
-
service: {
|
|
119
|
-
...stateRef.current.service,
|
|
120
|
-
...payload
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
111
|
};
|
|
125
112
|
const boardConfig = (0, import_react.useMemo)(() => {
|
|
126
113
|
var _a2, _b2, _c2;
|
|
@@ -141,18 +128,6 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
|
141
128
|
state == null ? void 0 : state.modalOpen
|
|
142
129
|
]);
|
|
143
130
|
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
|
-
}
|
|
156
131
|
setGlobalState({
|
|
157
132
|
pet: {
|
|
158
133
|
...state.pet,
|
|
@@ -284,7 +259,7 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
|
284
259
|
}, [isWalkIn, formId, (_q = state.client.value) == null ? void 0 : _q.id, currentPetValue, boardConfig]);
|
|
285
260
|
const petRender = (0, import_react.useMemo)(() => {
|
|
286
261
|
var _a2, _b2, _c2;
|
|
287
|
-
if ((
|
|
262
|
+
if ((state == null ? void 0 : state.disabledEdit) || boardConfig.type !== "form") {
|
|
288
263
|
return null;
|
|
289
264
|
}
|
|
290
265
|
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(
|
|
@@ -349,8 +324,7 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
|
349
324
|
handleAddPet,
|
|
350
325
|
currentPetValue,
|
|
351
326
|
formId,
|
|
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
|
|
327
|
+
(_x = (_w = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _w.holder) == null ? void 0 : _x.data_range
|
|
354
328
|
]);
|
|
355
329
|
const handleOpenClient = () => {
|
|
356
330
|
if (!isWalkIn || (state == null ? void 0 : state.disableEventBookingEdit)) {
|
|
@@ -366,55 +340,6 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
|
366
340
|
setSearch: (_b2 = modalRef.current) == null ? void 0 : _b2.setSearch
|
|
367
341
|
};
|
|
368
342
|
});
|
|
369
|
-
const isOpenDeleteProduct = (0, import_react.useMemo)(() => {
|
|
370
|
-
if (!(0, import_utils3.isDayBooking)(state))
|
|
371
|
-
return false;
|
|
372
|
-
const pets = (0, import_utils3.getPets)(state);
|
|
373
|
-
const appointmentServices = (0, import_utils3.getAppointmentService)(state);
|
|
374
|
-
if ((pets == null ? void 0 : pets.length) && ((appointmentServices == null ? void 0 : appointmentServices.length) || (0, import_utils3.isEventBooking)(state))) {
|
|
375
|
-
return true;
|
|
376
|
-
}
|
|
377
|
-
return false;
|
|
378
|
-
}, [state]);
|
|
379
|
-
const _handleSelectClient = async (e) => {
|
|
380
|
-
var _a2, _b2, _c2, _d2, _e2;
|
|
381
|
-
handleSelectClient(e);
|
|
382
|
-
if ((0, import_utils3.isDayBooking)(state)) {
|
|
383
|
-
let _value = (e == null ? void 0 : e[e.length - 1]) || import_model.walkInData;
|
|
384
|
-
if (_value.loading) {
|
|
385
|
-
return;
|
|
386
|
-
}
|
|
387
|
-
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)) {
|
|
388
|
-
const _state = {
|
|
389
|
-
...state,
|
|
390
|
-
client: {
|
|
391
|
-
...state.client,
|
|
392
|
-
value: {
|
|
393
|
-
..._value,
|
|
394
|
-
name: getNickname(_value)
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
if (isOpenDeleteProduct) {
|
|
399
|
-
(_e2 = changePetRef.current) == null ? void 0 : _e2.open({
|
|
400
|
-
setGlobalState,
|
|
401
|
-
service: ((_d2 = state.service) == null ? void 0 : _d2.value) || [],
|
|
402
|
-
state,
|
|
403
|
-
source: "changeClient"
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
const services = await (0, import_utils3.updateServicePrice)(_state);
|
|
407
|
-
console.log(services, state, _value, isOpenDeleteProduct, "wh98797686");
|
|
408
|
-
setGlobalState({
|
|
409
|
-
service: {
|
|
410
|
-
...stateRef.current.service,
|
|
411
|
-
value: services,
|
|
412
|
-
edit: true
|
|
413
|
-
}
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
};
|
|
418
343
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
419
344
|
"div",
|
|
420
345
|
{
|
|
@@ -434,11 +359,11 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
|
434
359
|
import_antd.Avatar,
|
|
435
360
|
{
|
|
436
361
|
className: "pisell-lowcode__booking-client-avatar",
|
|
437
|
-
src: import_utils.image.ali((
|
|
362
|
+
src: import_utils.image.ali((_y = state.client.value) == null ? void 0 : _y.cover, 100),
|
|
438
363
|
size: 64,
|
|
439
364
|
icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
|
|
440
365
|
}
|
|
441
|
-
), 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)), ((
|
|
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)), ((_z = state.client.value) == null ? void 0 : _z.email) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_A = state.client.value) == null ? void 0 : _A.email) : null, ((_B = state.client.value) == null ? void 0 : _B.phone) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-desc-item" }, (_C = state.client.value) == null ? void 0 : _C.phone) : null), !isWalkIn && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-action-wrap" }, !state.disabledEdit && /* @__PURE__ */ import_react.default.createElement(
|
|
442
367
|
import_antd.Dropdown.Button,
|
|
443
368
|
{
|
|
444
369
|
menu: {
|
|
@@ -489,26 +414,24 @@ var VerticalClient = (0, import_react.forwardRef)((props, ref) => {
|
|
|
489
414
|
showHeader: !state.isBookingCreatePage,
|
|
490
415
|
modalOpen: state.modalOpen,
|
|
491
416
|
loading,
|
|
492
|
-
autoFocus: !((
|
|
417
|
+
autoFocus: !((_F = (_E = (_D = context == null ? void 0 : context.appHelper) == null ? void 0 : _D.utils) == null ? void 0 : _E.isTerminal) == null ? void 0 : _F.call(_E)),
|
|
493
418
|
ref: modalRef,
|
|
494
419
|
onClose: handleClose,
|
|
495
|
-
handleSelectClient
|
|
420
|
+
handleSelectClient,
|
|
496
421
|
handleCreateItem,
|
|
497
422
|
childrenValue: state.pet.value,
|
|
498
423
|
handleSelectPet,
|
|
499
424
|
formData: state.pet.formData,
|
|
500
425
|
searchChange,
|
|
501
426
|
options: renderList,
|
|
502
|
-
holder: (
|
|
503
|
-
client: (
|
|
427
|
+
holder: (_G = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _G.holder,
|
|
428
|
+
client: (_H = state == null ? void 0 : state.client) == null ? void 0 : _H.value,
|
|
504
429
|
loadMore,
|
|
505
430
|
showPet: (boardConfig == null ? void 0 : boardConfig.type) === "form",
|
|
506
431
|
handleAddPet,
|
|
507
|
-
franchiseeLoading
|
|
508
|
-
showWalkIn: !(0, import_utils3.isDayBooking)(state)
|
|
432
|
+
franchiseeLoading
|
|
509
433
|
}
|
|
510
|
-
)
|
|
511
|
-
/* @__PURE__ */ import_react.default.createElement(import_ChangePetModal.default, { ref: changePetRef })
|
|
434
|
+
)
|
|
512
435
|
);
|
|
513
436
|
});
|
|
514
437
|
var vertical_default = VerticalClient;
|
|
@@ -32,35 +32,32 @@ __export(main_exports, {
|
|
|
32
32
|
default: () => main_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(main_exports);
|
|
35
|
-
var import_utils = require("@pisell/utils");
|
|
36
35
|
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_model = require("./model");
|
|
37
|
+
var import_client = __toESM(require("./client"));
|
|
38
|
+
var import_service = __toESM(require("./service"));
|
|
39
|
+
var import_pet = __toESM(require("./pet"));
|
|
40
|
+
var import_date = __toESM(require("./date"));
|
|
37
41
|
var import_footer = __toESM(require("../components/footer"));
|
|
38
42
|
var import_tabPane = __toESM(require("../components/tabPane"));
|
|
39
|
-
var import_locales = __toESM(require("../locales"));
|
|
40
43
|
var import_addNote = __toESM(require("../notes/addNote"));
|
|
41
|
-
var import_client = __toESM(require("./client"));
|
|
42
|
-
var import_date = __toESM(require("./date"));
|
|
43
44
|
var import_header = __toESM(require("./header"));
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var import_service = __toESM(require("./service"));
|
|
47
|
-
var import_antd = require("antd");
|
|
48
|
-
var import_classnames = __toESM(require("classnames"));
|
|
49
|
-
var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
|
|
50
|
-
var import_useCreateBookingPageHeader = __toESM(require("../hooks/useCreateBookingPageHeader"));
|
|
45
|
+
var import_locales = __toESM(require("../locales"));
|
|
46
|
+
var import_utils = require("@pisell/utils");
|
|
51
47
|
var import_utils2 = require("../utils");
|
|
52
48
|
var import_date2 = require("./date");
|
|
53
|
-
var
|
|
49
|
+
var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
|
|
54
50
|
var import_notes = __toESM(require("./notes"));
|
|
55
|
-
var
|
|
56
|
-
var
|
|
51
|
+
var import_index = require("./index.less");
|
|
52
|
+
var import_classnames = __toESM(require("classnames"));
|
|
53
|
+
var import_antd = require("antd");
|
|
54
|
+
var import_useCreateBookingPageHeader = __toESM(require("../hooks/useCreateBookingPageHeader"));
|
|
57
55
|
var defaultModules = {
|
|
58
56
|
client: 1,
|
|
59
57
|
date: 1,
|
|
60
58
|
service: 1,
|
|
61
59
|
holder: 1,
|
|
62
|
-
note: 1
|
|
63
|
-
service2: 0
|
|
60
|
+
note: 1
|
|
64
61
|
};
|
|
65
62
|
import_utils.locales.init(import_locales.default, localStorage.getItem("umi_locale") || "en");
|
|
66
63
|
var Info = (0, import_model.Provider)((props) => {
|
|
@@ -99,8 +96,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
99
96
|
...globalState,
|
|
100
97
|
isTerminal: (_g2 = (_f2 = (_e2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _e2.utils) == null ? void 0 : _f2.isTerminal) == null ? void 0 : _g2.call(_f2),
|
|
101
98
|
isFranchisee,
|
|
102
|
-
timezone: (_m = (_l = (_k = (_j = (_i2 = (_h2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _h2.utils) == null ? void 0 : _i2.store) == null ? void 0 : _j.getState()) == null ? void 0 : _k.global) == null ? void 0 : _l.globalConfig) == null ? void 0 : _m.timezone
|
|
103
|
-
isDayBooking: (globalState == null ? void 0 : globalState.renderType) === "dayBooking"
|
|
99
|
+
timezone: (_m = (_l = (_k = (_j = (_i2 = (_h2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _h2.utils) == null ? void 0 : _i2.store) == null ? void 0 : _j.getState()) == null ? void 0 : _k.global) == null ? void 0 : _l.globalConfig) == null ? void 0 : _m.timezone
|
|
104
100
|
}
|
|
105
101
|
});
|
|
106
102
|
}, [JSON.stringify(globalState)]);
|
|
@@ -125,17 +121,11 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
125
121
|
globalState == null ? void 0 : globalState.renderType
|
|
126
122
|
]);
|
|
127
123
|
const notes = (0, import_react.useMemo)(() => {
|
|
128
|
-
var _a2, _b2
|
|
124
|
+
var _a2, _b2;
|
|
129
125
|
if (!modules.note) {
|
|
130
126
|
return null;
|
|
131
127
|
}
|
|
132
|
-
|
|
133
|
-
return null;
|
|
134
|
-
}
|
|
135
|
-
if ((0, import_utils3.isDayBooking)(globalState)) {
|
|
136
|
-
return /* @__PURE__ */ import_react.default.createElement(import_addNote.default, { value: (_b2 = (_a2 = modal.state) == null ? void 0 : _a2.notes) == null ? void 0 : _b2.orderNote, onChange: addNote });
|
|
137
|
-
}
|
|
138
|
-
return (globalState == null ? void 0 : globalState.bookingId) ? globalState.renderType === "eventBooking" || globalState.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_notes.default, null) : null : /* @__PURE__ */ import_react.default.createElement(import_addNote.default, { value: (_d2 = (_c2 = modal.state) == null ? void 0 : _c2.notes) == null ? void 0 : _d2.orderNote, onChange: addNote });
|
|
128
|
+
return (globalState == null ? void 0 : globalState.bookingId) ? globalState.renderType === "eventBooking" || globalState.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_notes.default, null) : null : /* @__PURE__ */ import_react.default.createElement(import_addNote.default, { value: (_b2 = (_a2 = modal.state) == null ? void 0 : _a2.notes) == null ? void 0 : _b2.orderNote, onChange: addNote });
|
|
139
129
|
}, [
|
|
140
130
|
modules.note,
|
|
141
131
|
globalState == null ? void 0 : globalState.bookingId,
|
|
@@ -145,10 +135,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
145
135
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !!modal.state.setGlobalState ? /* @__PURE__ */ import_react.default.createElement(
|
|
146
136
|
import_tabPane.default,
|
|
147
137
|
{
|
|
148
|
-
style
|
|
149
|
-
...style,
|
|
150
|
-
height: ((_h = (_g = context == null ? void 0 : context.appHelper) == null ? void 0 : _g.utils) == null ? void 0 : _h.isMobile) ? "100%" : "100vh"
|
|
151
|
-
},
|
|
138
|
+
style,
|
|
152
139
|
header,
|
|
153
140
|
footer: /* @__PURE__ */ import_react.default.createElement(
|
|
154
141
|
import_footer.default,
|
|
@@ -158,9 +145,12 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
158
145
|
source: "info"
|
|
159
146
|
}
|
|
160
147
|
),
|
|
148
|
+
style: {
|
|
149
|
+
height: ((_h = (_g = context == null ? void 0 : context.appHelper) == null ? void 0 : _g.utils) == null ? void 0 : _h.isMobile) ? "100%" : "100vh"
|
|
150
|
+
},
|
|
161
151
|
bodyClassName: (0, import_classnames.default)("booking-info-warp", {
|
|
162
152
|
["create-booking-page-info-wrap"]: isBookingCreatePage,
|
|
163
|
-
["create-booking-page-info-wrap-create"]: isBookingCreatePageCreateMode
|
|
153
|
+
["create-booking-page-info-wrap-create"]: isBookingCreatePageCreateMode
|
|
164
154
|
})
|
|
165
155
|
},
|
|
166
156
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, createHeader, modules.client ? /* @__PURE__ */ import_react.default.createElement(import_client.default, null) : null, modules.holder && !((_i = modal.state) == null ? void 0 : _i.disabledEdit) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, params.type === "form" ? /* @__PURE__ */ import_react.default.createElement(import_pet.default, null) : null) : null, modules.date ? /* @__PURE__ */ import_react.default.createElement(import_date.default, null) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -173,7 +163,6 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
173
163
|
style: { paddingTop: 20 }
|
|
174
164
|
},
|
|
175
165
|
modules.service ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, modal.state.date.value ? /* @__PURE__ */ import_react.default.createElement(import_service.default, null) : null) : null,
|
|
176
|
-
modules.service2 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, modal.state.date.value ? /* @__PURE__ */ import_react.default.createElement(import_service2.Service2Cart, null) : null) : null,
|
|
177
166
|
notes,
|
|
178
167
|
slot ? slot : null
|
|
179
168
|
))
|
|
@@ -32,19 +32,17 @@ __export(pet_exports, {
|
|
|
32
32
|
default: () => pet_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(pet_exports);
|
|
35
|
-
var import_User01 = __toESM(require("@pisell/icon/es/User01"));
|
|
36
|
-
var import_utils = require("@pisell/utils");
|
|
37
|
-
var import_ahooks = require("ahooks");
|
|
38
|
-
var import_antd = require("antd");
|
|
39
35
|
var import_react = __toESM(require("react"));
|
|
40
|
-
var
|
|
41
|
-
var import_format = require("../../forms/format");
|
|
42
|
-
var import_forms = __toESM(require("../../forms/forms"));
|
|
43
|
-
var import_utils2 = require("../../info/service2/utils");
|
|
44
|
-
var import_utils3 = require("../../utils");
|
|
36
|
+
var import_User01 = __toESM(require("@pisell/icon/es/User01"));
|
|
45
37
|
var import_model = require("../model");
|
|
46
|
-
var
|
|
38
|
+
var import_antd = require("antd");
|
|
47
39
|
var import_index = require("./index.less");
|
|
40
|
+
var import_utils = require("@pisell/utils");
|
|
41
|
+
var import_forms = __toESM(require("../../forms/forms"));
|
|
42
|
+
var import_format = require("../../forms/format");
|
|
43
|
+
var import_utils2 = require("../../utils");
|
|
44
|
+
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
45
|
+
var import_ahooks = require("ahooks");
|
|
48
46
|
var defaultParams = {
|
|
49
47
|
skip: 1,
|
|
50
48
|
num: 20,
|
|
@@ -67,7 +65,6 @@ var Pet = (props) => {
|
|
|
67
65
|
const context = (0, import_useEngineContext.default)();
|
|
68
66
|
const { isTerminal } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
69
67
|
const [params, setParams] = (0, import_react.useState)(defaultParams);
|
|
70
|
-
const changePetRef = (0, import_react.useRef)(null);
|
|
71
68
|
state = state || (props == null ? void 0 : props.state);
|
|
72
69
|
dispatch = dispatch || (props == null ? void 0 : props.dispatch);
|
|
73
70
|
const boardParams = (0, import_react.useMemo)(() => {
|
|
@@ -75,7 +72,7 @@ var Pet = (props) => {
|
|
|
75
72
|
return ((_c2 = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.basic) == null ? void 0 : _c2.appointment_subject) || {};
|
|
76
73
|
}, [(_d = (_c = (_b = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _b.config) == null ? void 0 : _c.basic) == null ? void 0 : _d.appointment_subject]);
|
|
77
74
|
const petForm = (0, import_react.useMemo)(() => {
|
|
78
|
-
var _a2
|
|
75
|
+
var _a2;
|
|
79
76
|
let _holder = (_a2 = state.bookingConfig) == null ? void 0 : _a2.holder;
|
|
80
77
|
if (!_holder) {
|
|
81
78
|
return null;
|
|
@@ -84,8 +81,8 @@ var Pet = (props) => {
|
|
|
84
81
|
..._holder,
|
|
85
82
|
..._holder == null ? void 0 : _holder.form,
|
|
86
83
|
options: [],
|
|
87
|
-
form_id:
|
|
88
|
-
field:
|
|
84
|
+
form_id: _holder.form.id,
|
|
85
|
+
field: _holder.form.form_field,
|
|
89
86
|
relation_type: "appointment_booking",
|
|
90
87
|
form_record: []
|
|
91
88
|
};
|
|
@@ -94,7 +91,7 @@ var Pet = (props) => {
|
|
|
94
91
|
var _a2, _b2, _c2, _d2;
|
|
95
92
|
setLoading(true);
|
|
96
93
|
let _list = [];
|
|
97
|
-
const noClient = formData.data_range === "customer" && (0,
|
|
94
|
+
const noClient = formData.data_range === "customer" && (0, import_utils2.isWalkIn)((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id);
|
|
98
95
|
if (!noClient) {
|
|
99
96
|
let _values = {
|
|
100
97
|
form_id: boardParams.form_id,
|
|
@@ -135,7 +132,7 @@ var Pet = (props) => {
|
|
|
135
132
|
};
|
|
136
133
|
const setPetOptions = (options) => {
|
|
137
134
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
138
|
-
const noClient = ((_b2 = (_a2 = state.pet) == null ? void 0 : _a2.formData) == null ? void 0 : _b2[0].data_range) === "customer" && (0,
|
|
135
|
+
const noClient = ((_b2 = (_a2 = state.pet) == null ? void 0 : _a2.formData) == null ? void 0 : _b2[0].data_range) === "customer" && (0, import_utils2.isWalkIn)((_d2 = (_c2 = state.client) == null ? void 0 : _c2.value) == null ? void 0 : _d2.id);
|
|
139
136
|
if (noClient) {
|
|
140
137
|
return;
|
|
141
138
|
}
|
|
@@ -153,22 +150,11 @@ var Pet = (props) => {
|
|
|
153
150
|
});
|
|
154
151
|
};
|
|
155
152
|
const getForms = async (isUpdateValue = true) => {
|
|
156
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
|
|
153
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2;
|
|
157
154
|
let values = {
|
|
158
155
|
...state.pet.value
|
|
159
156
|
};
|
|
160
|
-
let
|
|
161
|
-
if ((0, import_utils2.isEventBooking)(state)) {
|
|
162
|
-
recordIds = (_a2 = state.bookingDetail) == null ? void 0 : _a2.bookings.list.reduce(
|
|
163
|
-
(acc, cur) => {
|
|
164
|
-
return Array.from(/* @__PURE__ */ new Set([...acc, ...cur.holder.form_record]));
|
|
165
|
-
},
|
|
166
|
-
[]
|
|
167
|
-
);
|
|
168
|
-
} else {
|
|
169
|
-
recordIds = ((_c2 = (_b2 = state.bookingDetail) == null ? void 0 : _b2.holder) == null ? void 0 : _c2.form_record) || [];
|
|
170
|
-
}
|
|
171
|
-
let isSetValue = isUpdateValue && values[boardParams == null ? void 0 : boardParams.form_id] === void 0 && (recordIds == null ? void 0 : recordIds.length);
|
|
157
|
+
let isSetValue = isUpdateValue && values[boardParams == null ? void 0 : boardParams.form_id] === void 0 && ((_c2 = (_b2 = (_a2 = state.bookingDetail) == null ? void 0 : _a2.holder) == null ? void 0 : _b2.form_record) == null ? void 0 : _c2.length);
|
|
172
158
|
if (isSetValue) {
|
|
173
159
|
setValueLoading(true);
|
|
174
160
|
}
|
|
@@ -196,13 +182,13 @@ var Pet = (props) => {
|
|
|
196
182
|
};
|
|
197
183
|
if (isSetValue) {
|
|
198
184
|
let records = await state.apis.getFormRecords({
|
|
199
|
-
form_record_ids:
|
|
185
|
+
form_record_ids: (_g2 = (_f2 = state.bookingDetail) == null ? void 0 : _f2.holder) == null ? void 0 : _g2.form_record,
|
|
200
186
|
with: ["customer"]
|
|
201
187
|
});
|
|
202
188
|
console.log("records", records);
|
|
203
189
|
values[boardParams == null ? void 0 : boardParams.form_id] = (0, import_format.sortFormValues)(
|
|
204
190
|
records,
|
|
205
|
-
(
|
|
191
|
+
(_i2 = (_h2 = state.client) == null ? void 0 : _h2.value) == null ? void 0 : _i2.id
|
|
206
192
|
);
|
|
207
193
|
payload.value = values;
|
|
208
194
|
setValueLoading(false);
|
|
@@ -222,14 +208,10 @@ var Pet = (props) => {
|
|
|
222
208
|
let cur = [...state.pet.value[petForm.form_id] || []];
|
|
223
209
|
let options = ((_c2 = (_b2 = (_a2 = state.pet) == null ? void 0 : _a2.formData) == null ? void 0 : _b2[0]) == null ? void 0 : _c2.options) || [];
|
|
224
210
|
if (res.type === "delete") {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
cur = cur.filter((d) => d.form_record_id !== item.form_record_id);
|
|
211
|
+
cur = cur.filter(
|
|
212
|
+
(d) => d.form_record_id !== item.form_record_id
|
|
213
|
+
);
|
|
229
214
|
addCallback();
|
|
230
|
-
if (isDay) {
|
|
231
|
-
handleDayChange(item);
|
|
232
|
-
}
|
|
233
215
|
} else {
|
|
234
216
|
let obj = {
|
|
235
217
|
customer: item == null ? void 0 : item.customer,
|
|
@@ -261,7 +243,7 @@ var Pet = (props) => {
|
|
|
261
243
|
formDataConfig: { ...petForm },
|
|
262
244
|
record: item
|
|
263
245
|
};
|
|
264
|
-
if (petForm.data_range === "customer" && !(0,
|
|
246
|
+
if (petForm.data_range === "customer" && !(0, import_utils2.isWalkIn)((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id)) {
|
|
265
247
|
_data.customerId = (_d2 = (_c2 = state.client) == null ? void 0 : _c2.value) == null ? void 0 : _d2.id;
|
|
266
248
|
}
|
|
267
249
|
state.action({
|
|
@@ -278,7 +260,7 @@ var Pet = (props) => {
|
|
|
278
260
|
formDataConfig: { ...petForm },
|
|
279
261
|
record: item
|
|
280
262
|
};
|
|
281
|
-
if (petForm.data_range === "customer" && !(0,
|
|
263
|
+
if (petForm.data_range === "customer" && !(0, import_utils2.isWalkIn)((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id)) {
|
|
282
264
|
_data.customerId = (_d2 = (_c2 = state.client) == null ? void 0 : _c2.value) == null ? void 0 : _d2.id;
|
|
283
265
|
}
|
|
284
266
|
state.action({
|
|
@@ -290,29 +272,27 @@ var Pet = (props) => {
|
|
|
290
272
|
}
|
|
291
273
|
});
|
|
292
274
|
});
|
|
293
|
-
const onValueChange = (0, import_ahooks.useMemoizedFn)(
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
options
|
|
302
|
-
}
|
|
303
|
-
];
|
|
304
|
-
updateObj.pets = options;
|
|
305
|
-
}
|
|
306
|
-
dispatch({
|
|
307
|
-
type: "setPet",
|
|
308
|
-
payload: {
|
|
309
|
-
edit,
|
|
310
|
-
value: values,
|
|
311
|
-
...updateObj
|
|
275
|
+
const onValueChange = (0, import_ahooks.useMemoizedFn)(({ values, edit = true, options }) => {
|
|
276
|
+
var _a2, _b2;
|
|
277
|
+
const updateObj = {};
|
|
278
|
+
if (options) {
|
|
279
|
+
updateObj.formData = [
|
|
280
|
+
{
|
|
281
|
+
...(_b2 = (_a2 = state.pet) == null ? void 0 : _a2.formData) == null ? void 0 : _b2[0],
|
|
282
|
+
options
|
|
312
283
|
}
|
|
313
|
-
|
|
284
|
+
];
|
|
285
|
+
updateObj.pets = options;
|
|
314
286
|
}
|
|
315
|
-
|
|
287
|
+
dispatch({
|
|
288
|
+
type: "setPet",
|
|
289
|
+
payload: {
|
|
290
|
+
edit,
|
|
291
|
+
value: values,
|
|
292
|
+
...updateObj
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
});
|
|
316
296
|
(0, import_react.useEffect)(() => {
|
|
317
297
|
var _a2, _b2, _c2, _d2;
|
|
318
298
|
if (clientChangeNotSetPet)
|
|
@@ -383,29 +363,6 @@ var Pet = (props) => {
|
|
|
383
363
|
import_utils.locales.getText("pisell2.text.load-more")
|
|
384
364
|
)) : null;
|
|
385
365
|
}, [loadLoading, params, (_l = (_k = (_j = (_i = state.pet) == null ? void 0 : _i.formData) == null ? void 0 : _j[0]) == null ? void 0 : _k.options) == null ? void 0 : _l.length]);
|
|
386
|
-
const handleDayChange = (e) => {
|
|
387
|
-
var _a2, _b2;
|
|
388
|
-
const id = e == null ? void 0 : e.form_record_id;
|
|
389
|
-
const service = (_a2 = state.service.value) == null ? void 0 : _a2.filter(
|
|
390
|
-
(item) => item._extend.holder_id === id
|
|
391
|
-
);
|
|
392
|
-
if (id && (service == null ? void 0 : service.length)) {
|
|
393
|
-
changePetRef == null ? void 0 : changePetRef.current.open({
|
|
394
|
-
ids: [id],
|
|
395
|
-
dispatch,
|
|
396
|
-
service: ((_b2 = state.service) == null ? void 0 : _b2.value) || []
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
const dayCustomSelect = (0, import_react.useMemo)(() => {
|
|
401
|
-
const isDay = (0, import_utils2.isDayBooking)(state);
|
|
402
|
-
if (isDay) {
|
|
403
|
-
return {
|
|
404
|
-
handleDayChange
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
return {};
|
|
408
|
-
}, [state.renderType, state.service.value]);
|
|
409
366
|
return (0, import_react.useMemo)(() => {
|
|
410
367
|
var _a2;
|
|
411
368
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-pet-wraps" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: valueLoading, active: true, round: true }, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -415,10 +372,7 @@ var Pet = (props) => {
|
|
|
415
372
|
watch: { value: state.pet.value },
|
|
416
373
|
addCallback: (formDataConfig, data) => {
|
|
417
374
|
var _a3, _b2, _c2;
|
|
418
|
-
setPetOptions([
|
|
419
|
-
{ ...data, form_id: formDataConfig == null ? void 0 : formDataConfig.form_id },
|
|
420
|
-
...((_c2 = (_b2 = (_a3 = state.pet) == null ? void 0 : _a3.formData) == null ? void 0 : _b2[0]) == null ? void 0 : _c2.options) || []
|
|
421
|
-
]);
|
|
375
|
+
setPetOptions([{ ...data, form_id: formDataConfig == null ? void 0 : formDataConfig.form_id }, ...((_c2 = (_b2 = (_a3 = state.pet) == null ? void 0 : _a3.formData) == null ? void 0 : _b2[0]) == null ? void 0 : _c2.options) || []]);
|
|
422
376
|
},
|
|
423
377
|
loading: valueLoading,
|
|
424
378
|
forms: state.pet.formData,
|
|
@@ -444,8 +398,7 @@ var Pet = (props) => {
|
|
|
444
398
|
return true;
|
|
445
399
|
},
|
|
446
400
|
handleOpenModal,
|
|
447
|
-
previewItemTitleRender
|
|
448
|
-
...dayCustomSelect
|
|
401
|
+
previewItemTitleRender
|
|
449
402
|
},
|
|
450
403
|
optionRender: (item) => {
|
|
451
404
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -489,7 +442,7 @@ var Pet = (props) => {
|
|
|
489
442
|
...addButtonProps
|
|
490
443
|
}
|
|
491
444
|
}
|
|
492
|
-
))
|
|
445
|
+
)));
|
|
493
446
|
}, [
|
|
494
447
|
valueLoading,
|
|
495
448
|
hideTitle,
|