@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
|
@@ -1,500 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/Sales/Cart/index.tsx
|
|
30
|
-
var Cart_exports = {};
|
|
31
|
-
__export(Cart_exports, {
|
|
32
|
-
CartContext: () => CartContext,
|
|
33
|
-
CartProvider: () => CartProvider,
|
|
34
|
-
default: () => Cart_default,
|
|
35
|
-
useCart: () => useCart
|
|
36
|
-
});
|
|
37
|
-
module.exports = __toCommonJS(Cart_exports);
|
|
38
|
-
var import_react = __toESM(require("react"));
|
|
39
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
40
|
-
var import_utils = require("@pisell/utils");
|
|
41
|
-
var import_SalesModel = require("../../../businessModel/SalesModel");
|
|
42
|
-
var import_serve = require("./serve");
|
|
43
|
-
var import_Customer = require("../Customer");
|
|
44
|
-
var import_ahooks = require("ahooks");
|
|
45
|
-
var import_utils2 = require("../Checkout/utils");
|
|
46
|
-
var defaultState = {
|
|
47
|
-
cartItems: [],
|
|
48
|
-
currentCartItem: null
|
|
49
|
-
};
|
|
50
|
-
var CartContext = (0, import_react.createContext)(
|
|
51
|
-
void 0
|
|
52
|
-
);
|
|
53
|
-
var CartProvider = ({ children }) => {
|
|
54
|
-
const { appUtils, getUserInfo } = (0, import_Customer.useCustomer)();
|
|
55
|
-
const { data, setData, hooks, getCurrentData } = (0, import_SalesModel.useSales)();
|
|
56
|
-
const [openCart, setOpen] = (0, import_react.useState)(false);
|
|
57
|
-
const checkRef = (0, import_react.useRef)(null);
|
|
58
|
-
const cartData = (0, import_react.useMemo)(() => {
|
|
59
|
-
return data.cartData || defaultState;
|
|
60
|
-
}, [data]);
|
|
61
|
-
const currentCartItem = (0, import_react.useMemo)(() => {
|
|
62
|
-
return cartData.currentCartItem;
|
|
63
|
-
}, [cartData]);
|
|
64
|
-
const cartDataHolderList = (0, import_react.useMemo)(() => {
|
|
65
|
-
var _a, _b;
|
|
66
|
-
if (!((_a = cartData.cartItems) == null ? void 0 : _a.length)) {
|
|
67
|
-
return [];
|
|
68
|
-
}
|
|
69
|
-
const selectedHolderItems = ((_b = getCurrentData().holderData) == null ? void 0 : _b.selectedHolderItems) || [];
|
|
70
|
-
if (selectedHolderItems == null ? void 0 : selectedHolderItems.length) {
|
|
71
|
-
const cartMap = getCurrentData().cartData.cartItems.reduce(
|
|
72
|
-
(map, cartItem) => {
|
|
73
|
-
if (!map.has(cartItem.holder_id)) {
|
|
74
|
-
map.set(cartItem.holder_id, []);
|
|
75
|
-
}
|
|
76
|
-
map.get(cartItem.holder_id).push(cartItem);
|
|
77
|
-
return map;
|
|
78
|
-
},
|
|
79
|
-
/* @__PURE__ */ new Map()
|
|
80
|
-
);
|
|
81
|
-
const result = selectedHolderItems.map((holderItem) => {
|
|
82
|
-
return {
|
|
83
|
-
...holderItem,
|
|
84
|
-
children: cartMap.get(holderItem.id) || []
|
|
85
|
-
};
|
|
86
|
-
});
|
|
87
|
-
if (cartMap.get(void 0)) {
|
|
88
|
-
result.push({ children: cartMap.get(void 0) });
|
|
89
|
-
}
|
|
90
|
-
return result;
|
|
91
|
-
} else {
|
|
92
|
-
return [{ children: cartData.cartItems }];
|
|
93
|
-
}
|
|
94
|
-
}, [data]);
|
|
95
|
-
const onOpenCart = () => {
|
|
96
|
-
setOpen(true);
|
|
97
|
-
};
|
|
98
|
-
const onCloseCart = () => {
|
|
99
|
-
setOpen(false);
|
|
100
|
-
};
|
|
101
|
-
const setCartData = (newCartData) => {
|
|
102
|
-
setData({
|
|
103
|
-
cartData: {
|
|
104
|
-
...getCurrentData().cartData || {},
|
|
105
|
-
...newCartData
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
const createCartItemOriginData = () => {
|
|
110
|
-
return {
|
|
111
|
-
// 新增为0
|
|
112
|
-
id: 0,
|
|
113
|
-
// 数量 固定为1
|
|
114
|
-
number: 1,
|
|
115
|
-
// 客户端报名所有活动;
|
|
116
|
-
registration_type: "all",
|
|
117
|
-
// 暂时不用
|
|
118
|
-
relation_products: [],
|
|
119
|
-
// 商品相关
|
|
120
|
-
product: null,
|
|
121
|
-
// holder相关
|
|
122
|
-
holder: null,
|
|
123
|
-
// 资源相关
|
|
124
|
-
// 资源状态 -固定
|
|
125
|
-
like_status: "common",
|
|
126
|
-
// 资源类型 - 固定
|
|
127
|
-
relation_type: "form",
|
|
128
|
-
// 日程id - 固定
|
|
129
|
-
schedule_id: 0,
|
|
130
|
-
// 资源id - event id
|
|
131
|
-
relation_id: null,
|
|
132
|
-
// 所选开始时间 - 从日程中取第一个
|
|
133
|
-
start_date: null,
|
|
134
|
-
// 所选开始时间 - 从日程中取第一个
|
|
135
|
-
start_time: null,
|
|
136
|
-
// 所选开始时间 - 从日程中取第一个
|
|
137
|
-
select_date: null,
|
|
138
|
-
// 所选结束时间 -固定
|
|
139
|
-
end_time: null,
|
|
140
|
-
// 所选结束时间 - 固定
|
|
141
|
-
end_date: null,
|
|
142
|
-
// 时长类型 - 固定 - 天
|
|
143
|
-
sub_type: "days",
|
|
144
|
-
// 时长 - 固定
|
|
145
|
-
duration: 0,
|
|
146
|
-
// 固定
|
|
147
|
-
is_all: false
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
const createCartItem = () => {
|
|
151
|
-
const cartItem = {
|
|
152
|
-
_id: (0, import_utils.getUniqueId)(),
|
|
153
|
-
_originData: createCartItemOriginData()
|
|
154
|
-
};
|
|
155
|
-
setCurrentCartItem(cartItem);
|
|
156
|
-
return cartItem;
|
|
157
|
-
};
|
|
158
|
-
const createCartItemFromEvent = (eventItem) => {
|
|
159
|
-
const { resourceData, holderData } = getCurrentData();
|
|
160
|
-
let cartItem = {
|
|
161
|
-
_id: (0, import_utils.getUniqueId)(),
|
|
162
|
-
_originData: createCartItemOriginData(),
|
|
163
|
-
resourceItem: resourceData == null ? void 0 : resourceData.currentResourceItem,
|
|
164
|
-
eventItem: { ...eventItem }
|
|
165
|
-
};
|
|
166
|
-
const currentHolderItem = getCurrentHolderItem();
|
|
167
|
-
if (currentHolderItem) {
|
|
168
|
-
cartItem = { ...cartItem, holderItem: currentHolderItem };
|
|
169
|
-
}
|
|
170
|
-
setCurrentCartItem(cartItem);
|
|
171
|
-
return cartItem;
|
|
172
|
-
};
|
|
173
|
-
const createCartItemFromHolder = (holderItem) => {
|
|
174
|
-
var _a;
|
|
175
|
-
const cartItem = {
|
|
176
|
-
_id: (0, import_utils.getUniqueId)(),
|
|
177
|
-
_originData: createCartItemOriginData(),
|
|
178
|
-
resourceItem: (_a = data.resourceData) == null ? void 0 : _a.currentResourceItem,
|
|
179
|
-
holderItem
|
|
180
|
-
};
|
|
181
|
-
setCurrentCartItem(cartItem);
|
|
182
|
-
return cartItem;
|
|
183
|
-
};
|
|
184
|
-
const checkBeforeAddToCartResquest = (0, import_ahooks.useRequest)(import_serve.checkBeforeAddToCartApi, {
|
|
185
|
-
manual: true,
|
|
186
|
-
onSuccess: (res) => {
|
|
187
|
-
var _a, _b;
|
|
188
|
-
if ((_a = res.data) == null ? void 0 : _a.length) {
|
|
189
|
-
const isUnavailable = checkCartItemIsUnavailable(
|
|
190
|
-
res.data,
|
|
191
|
-
checkRef.current.cartItem
|
|
192
|
-
);
|
|
193
|
-
checkRef.current.callback({
|
|
194
|
-
result: isUnavailable ? false : true,
|
|
195
|
-
num: isUnavailable ? (_b = res.data) == null ? void 0 : _b.length : 0
|
|
196
|
-
});
|
|
197
|
-
} else {
|
|
198
|
-
checkRef.current.callback({ result: true });
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
const checkBeforeAddToCart = () => {
|
|
203
|
-
return new Promise((resolve) => {
|
|
204
|
-
const _cartData = getCurrentData().cartData;
|
|
205
|
-
const newCartItem = createCartItemData() || {};
|
|
206
|
-
const params = (0, import_utils2.formatValues)({
|
|
207
|
-
cartData: {
|
|
208
|
-
cartItems: [..._cartData.cartItems || [], newCartItem]
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
checkRef.current = {
|
|
212
|
-
callback: (res) => {
|
|
213
|
-
resolve(res);
|
|
214
|
-
checkRef.current = null;
|
|
215
|
-
},
|
|
216
|
-
cartItem: newCartItem
|
|
217
|
-
};
|
|
218
|
-
checkBeforeAddToCartResquest.runAsync(params);
|
|
219
|
-
});
|
|
220
|
-
};
|
|
221
|
-
const createCartItemData = () => {
|
|
222
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
223
|
-
const _cartData = getCurrentData().cartData;
|
|
224
|
-
if (_cartData.currentCartItem) {
|
|
225
|
-
const {
|
|
226
|
-
_id,
|
|
227
|
-
eventItem = {},
|
|
228
|
-
holderItem = {}
|
|
229
|
-
} = _cartData.currentCartItem || {};
|
|
230
|
-
const bookingOptionData = (_b = (_a = eventItem == null ? void 0 : eventItem.eventDetail) == null ? void 0 : _a.bookingOptionItem) == null ? void 0 : _b._originData;
|
|
231
|
-
const startDateInfo = (_d = (_c = eventItem == null ? void 0 : eventItem.eventDetail) == null ? void 0 : _c.selectDate) == null ? void 0 : _d.startDateInfo;
|
|
232
|
-
const startTime = (_f = (_e = startDateInfo == null ? void 0 : startDateInfo.times) == null ? void 0 : _e[0]) == null ? void 0 : _f.start_at;
|
|
233
|
-
const endDateInfo = (_h = (_g = eventItem == null ? void 0 : eventItem.eventDetail) == null ? void 0 : _g.selectDate) == null ? void 0 : _h.endDateInfo;
|
|
234
|
-
const endTime = (_k = (_j = (_i = endDateInfo == null ? void 0 : endDateInfo.times) == null ? void 0 : _i.slice(-1)) == null ? void 0 : _j[0]) == null ? void 0 : _k.end_at;
|
|
235
|
-
const originTotal = Number((bookingOptionData == null ? void 0 : bookingOptionData.original_price) || "");
|
|
236
|
-
const newCartItem = {
|
|
237
|
-
_id,
|
|
238
|
-
id: eventItem.id,
|
|
239
|
-
name: eventItem.title,
|
|
240
|
-
price: bookingOptionData == null ? void 0 : bookingOptionData.price,
|
|
241
|
-
total: bookingOptionData == null ? void 0 : bookingOptionData.price,
|
|
242
|
-
// 排除原始价格为0的场景
|
|
243
|
-
origin_total: isNaN(originTotal) || originTotal === 0 ? void 0 : bookingOptionData == null ? void 0 : bookingOptionData.original_price,
|
|
244
|
-
num: 1,
|
|
245
|
-
image: eventItem.image,
|
|
246
|
-
isShowNote: true,
|
|
247
|
-
note: "",
|
|
248
|
-
holder_title: holderItem.name,
|
|
249
|
-
holder_id: holderItem.id,
|
|
250
|
-
symbol: appUtils == null ? void 0 : appUtils.getSymbolic(),
|
|
251
|
-
start_date: (startDateInfo == null ? void 0 : startDateInfo.date) || "",
|
|
252
|
-
start_time: startTime ? (0, import_dayjs.default)(startTime || "").format("HH:mm") : "",
|
|
253
|
-
end_date: (endDateInfo == null ? void 0 : endDateInfo.date) || "",
|
|
254
|
-
// 格式化日期显示的格式
|
|
255
|
-
format: ["HH:mm DD/MM/YYYY", "YYYY-MM-DD HH:mm"],
|
|
256
|
-
// 是否显示时间
|
|
257
|
-
show_time: true,
|
|
258
|
-
end_time: endTime ? (0, import_dayjs.default)(endTime || "").format("HH:mm") : "",
|
|
259
|
-
custom_day_count: ((_n = (_m = (_l = eventItem == null ? void 0 : eventItem.eventDetail) == null ? void 0 : _l.selectDate) == null ? void 0 : _m.dates) == null ? void 0 : _n.length) || 0,
|
|
260
|
-
is_charge_tax: bookingOptionData == null ? void 0 : bookingOptionData.is_charge_tax,
|
|
261
|
-
_originData: {
|
|
262
|
-
..._cartData.currentCartItem._originData,
|
|
263
|
-
product: {
|
|
264
|
-
num: 1,
|
|
265
|
-
product_id: bookingOptionData.id,
|
|
266
|
-
note: "",
|
|
267
|
-
// eventdetail 获取
|
|
268
|
-
product_bundle: [],
|
|
269
|
-
product_option_item: [],
|
|
270
|
-
product_variant_id: 0
|
|
271
|
-
},
|
|
272
|
-
relation_id: eventItem.id,
|
|
273
|
-
start_date: (startDateInfo == null ? void 0 : startDateInfo.date) || null,
|
|
274
|
-
start_time: startTime ? (0, import_dayjs.default)(startTime || "").format("HH:mm") : null,
|
|
275
|
-
select_date: (startDateInfo == null ? void 0 : startDateInfo.date) || null,
|
|
276
|
-
metadata: {
|
|
277
|
-
end_date_text: (endDateInfo == null ? void 0 : endDateInfo.date) || null,
|
|
278
|
-
end_time_text: endTime ? (0, import_dayjs.default)(endTime || "").format("HH:mm") : null
|
|
279
|
-
},
|
|
280
|
-
event_unique_identifier: _id
|
|
281
|
-
// 传递给接口用于商品可用性检测的比对
|
|
282
|
-
}
|
|
283
|
-
};
|
|
284
|
-
if (holderItem == null ? void 0 : holderItem._originData) {
|
|
285
|
-
newCartItem._originData.holder = {
|
|
286
|
-
customer_id: (_o = getUserInfo()) == null ? void 0 : _o.id,
|
|
287
|
-
form_id: (_p = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _p.form_id,
|
|
288
|
-
form_record: ((_q = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _q.form_record_id) ? [(_r = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _r.form_record_id] : null
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
return newCartItem;
|
|
292
|
-
}
|
|
293
|
-
return null;
|
|
294
|
-
};
|
|
295
|
-
const addToCart = () => {
|
|
296
|
-
const _cartData = getCurrentData().cartData;
|
|
297
|
-
const newCartItem = createCartItemData();
|
|
298
|
-
if (_cartData.currentCartItem && newCartItem) {
|
|
299
|
-
setCartData({
|
|
300
|
-
cartItems: [..._cartData.cartItems || [], newCartItem],
|
|
301
|
-
currentCartItem: null
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
const updateCartItem = (cartItem) => {
|
|
306
|
-
const newCartItems = getCurrentData().cartData.cartItems.map(
|
|
307
|
-
(item) => item._id === cartItem._id ? cartItem : item
|
|
308
|
-
);
|
|
309
|
-
setCartData({
|
|
310
|
-
cartItems: newCartItems
|
|
311
|
-
});
|
|
312
|
-
return cartItem;
|
|
313
|
-
};
|
|
314
|
-
const addHolderToCartItem = (holderItem) => {
|
|
315
|
-
const newCartItems = getCurrentData().cartData.cartItems.map(
|
|
316
|
-
(item) => {
|
|
317
|
-
var _a, _b, _c, _d;
|
|
318
|
-
if (!item.holder_id) {
|
|
319
|
-
item = {
|
|
320
|
-
...item,
|
|
321
|
-
holder_title: holderItem.name,
|
|
322
|
-
holder_id: holderItem.id
|
|
323
|
-
};
|
|
324
|
-
item._originData.holder = {
|
|
325
|
-
customer_id: (_a = getUserInfo()) == null ? void 0 : _a.id,
|
|
326
|
-
form_id: (_b = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _b.form_id,
|
|
327
|
-
form_record: ((_c = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _c.form_record_id) ? [(_d = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _d.form_record_id] : null
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
return item;
|
|
331
|
-
}
|
|
332
|
-
);
|
|
333
|
-
setCartData({ cartItems: newCartItems });
|
|
334
|
-
};
|
|
335
|
-
const addNoteToCartItem = (cartItem) => {
|
|
336
|
-
const newCartItems = getCurrentData().cartData.cartItems.map(
|
|
337
|
-
(item) => {
|
|
338
|
-
if (item._id === cartItem._id) {
|
|
339
|
-
item = {
|
|
340
|
-
...item,
|
|
341
|
-
note: cartItem.note
|
|
342
|
-
};
|
|
343
|
-
item._originData.product = {
|
|
344
|
-
...item._originData.product || {},
|
|
345
|
-
note: cartItem.note
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
return item;
|
|
349
|
-
}
|
|
350
|
-
);
|
|
351
|
-
setCartData({ cartItems: newCartItems });
|
|
352
|
-
};
|
|
353
|
-
const deleteCartItem = (cartItem) => {
|
|
354
|
-
const newCartItems = getCurrentData().cartData.cartItems.filter(
|
|
355
|
-
(item) => item._id !== cartItem._id
|
|
356
|
-
);
|
|
357
|
-
setCartData({
|
|
358
|
-
cartItems: newCartItems
|
|
359
|
-
});
|
|
360
|
-
};
|
|
361
|
-
const deleteCartItemByHolder = (holder_id) => {
|
|
362
|
-
const newCartItems = getCurrentData().cartData.cartItems.filter(
|
|
363
|
-
(item) => item.holder_id !== holder_id
|
|
364
|
-
);
|
|
365
|
-
setCartData({
|
|
366
|
-
cartItems: newCartItems
|
|
367
|
-
});
|
|
368
|
-
};
|
|
369
|
-
const clickCartItem = (cartItem) => {
|
|
370
|
-
setCurrentCartItem(cartItem);
|
|
371
|
-
};
|
|
372
|
-
const setCurrentCartItem = (cartItem) => {
|
|
373
|
-
setCartData({
|
|
374
|
-
currentCartItem: cartItem
|
|
375
|
-
});
|
|
376
|
-
};
|
|
377
|
-
const updateCurrentCartItem = (cartItem) => {
|
|
378
|
-
var _a;
|
|
379
|
-
const item = (_a = getCurrentData().cartData) == null ? void 0 : _a.currentCartItem;
|
|
380
|
-
if (item) {
|
|
381
|
-
setCurrentCartItem({ ...item, ...cartItem });
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
const clearCurrentCartItem = () => {
|
|
385
|
-
setCartData({
|
|
386
|
-
currentCartItem: null
|
|
387
|
-
});
|
|
388
|
-
};
|
|
389
|
-
const checkHolder = () => {
|
|
390
|
-
var _a;
|
|
391
|
-
const currentCartItems = (_a = getCurrentData().cartData) == null ? void 0 : _a.cartItems;
|
|
392
|
-
if (currentCartItems == null ? void 0 : currentCartItems.length) {
|
|
393
|
-
const idx = currentCartItems.find((v) => !v.holder_id);
|
|
394
|
-
if (idx === void 0) {
|
|
395
|
-
return true;
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
return false;
|
|
399
|
-
};
|
|
400
|
-
const getCurrentHolderItem = () => {
|
|
401
|
-
const { selectedHolderItems, currentHolderItem } = getCurrentData().holderData || {};
|
|
402
|
-
if (selectedHolderItems == null ? void 0 : selectedHolderItems.length) {
|
|
403
|
-
let newCurrentHolderItem = currentHolderItem;
|
|
404
|
-
const result = selectedHolderItems.find(
|
|
405
|
-
(v) => v.id === (currentHolderItem == null ? void 0 : currentHolderItem.id)
|
|
406
|
-
);
|
|
407
|
-
if (result === void 0) {
|
|
408
|
-
newCurrentHolderItem = selectedHolderItems[selectedHolderItems.length - 1];
|
|
409
|
-
}
|
|
410
|
-
return newCurrentHolderItem;
|
|
411
|
-
}
|
|
412
|
-
return null;
|
|
413
|
-
};
|
|
414
|
-
const checkCartItemIsUnavailable = (list, item) => {
|
|
415
|
-
var _a, _b, _c, _d;
|
|
416
|
-
const productId = (_b = (_a = item._originData) == null ? void 0 : _a.product) == null ? void 0 : _b.product_id;
|
|
417
|
-
const relationId = (_c = item._originData) == null ? void 0 : _c.relation_id;
|
|
418
|
-
const eventUniqueIdentifier = (_d = item._originData) == null ? void 0 : _d.event_unique_identifier;
|
|
419
|
-
return list.find((res) => {
|
|
420
|
-
var _a2;
|
|
421
|
-
const checkType = ["available_capacity"];
|
|
422
|
-
const isTypeIncludes = ((_a2 = res.details) == null ? void 0 : _a2.find((v) => {
|
|
423
|
-
var _a3;
|
|
424
|
-
return (_a3 = checkType.includes) == null ? void 0 : _a3.call(checkType, v.type || "");
|
|
425
|
-
})) !== void 0;
|
|
426
|
-
if (isTypeIncludes) {
|
|
427
|
-
return res.product_id === productId && res.relation_id === relationId && res.event_unique_identifier === eventUniqueIdentifier;
|
|
428
|
-
}
|
|
429
|
-
return false;
|
|
430
|
-
}) !== void 0;
|
|
431
|
-
};
|
|
432
|
-
const updateDisabledCartItem = (list) => {
|
|
433
|
-
const currentCartItems = getCurrentData().cartData.cartItems || [];
|
|
434
|
-
if ((list == null ? void 0 : list.length) && currentCartItems.length) {
|
|
435
|
-
const newCartItems = currentCartItems.map((item) => {
|
|
436
|
-
const isUnavailable = checkCartItemIsUnavailable(list, item);
|
|
437
|
-
if (isUnavailable) {
|
|
438
|
-
item.disabled = true;
|
|
439
|
-
} else {
|
|
440
|
-
item.disabled = false;
|
|
441
|
-
}
|
|
442
|
-
return item;
|
|
443
|
-
});
|
|
444
|
-
setCartData({ cartItems: newCartItems });
|
|
445
|
-
}
|
|
446
|
-
};
|
|
447
|
-
const getWithoutCartItemsHolderNames = () => {
|
|
448
|
-
var _a;
|
|
449
|
-
const list = [];
|
|
450
|
-
(_a = cartDataHolderList == null ? void 0 : cartDataHolderList.forEach) == null ? void 0 : _a.call(cartDataHolderList, (v) => {
|
|
451
|
-
var _a2;
|
|
452
|
-
if (!((_a2 = v == null ? void 0 : v.children) == null ? void 0 : _a2.length)) {
|
|
453
|
-
list.push((v == null ? void 0 : v.name) || "");
|
|
454
|
-
}
|
|
455
|
-
});
|
|
456
|
-
return list;
|
|
457
|
-
};
|
|
458
|
-
const contextValue = {
|
|
459
|
-
createCartItem,
|
|
460
|
-
createCartItemFromEvent,
|
|
461
|
-
createCartItemFromHolder,
|
|
462
|
-
addToCart,
|
|
463
|
-
updateCartItem,
|
|
464
|
-
deleteCartItem,
|
|
465
|
-
clickCartItem,
|
|
466
|
-
updateCurrentCartItem,
|
|
467
|
-
clearCurrentCartItem,
|
|
468
|
-
currentCartItem,
|
|
469
|
-
cartData,
|
|
470
|
-
checkHolder,
|
|
471
|
-
openCart,
|
|
472
|
-
onOpenCart,
|
|
473
|
-
onCloseCart,
|
|
474
|
-
deleteCartItemByHolder,
|
|
475
|
-
addHolderToCartItem,
|
|
476
|
-
cartDataHolderList,
|
|
477
|
-
addNoteToCartItem,
|
|
478
|
-
updateDisabledCartItem,
|
|
479
|
-
getWithoutCartItemsHolderNames,
|
|
480
|
-
checkBeforeAddToCartResquest,
|
|
481
|
-
checkBeforeAddToCart
|
|
482
|
-
};
|
|
483
|
-
return /* @__PURE__ */ import_react.default.createElement(CartContext.Provider, { value: contextValue }, children);
|
|
484
|
-
};
|
|
485
|
-
var useCart = () => {
|
|
486
|
-
const context = import_react.default.useContext(CartContext);
|
|
487
|
-
if (!context) {
|
|
488
|
-
throw new Error("useCart must be used within a CartProvider");
|
|
489
|
-
}
|
|
490
|
-
return context;
|
|
491
|
-
};
|
|
492
|
-
var Cart_default = {
|
|
493
|
-
defaultState
|
|
494
|
-
};
|
|
495
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
496
|
-
0 && (module.exports = {
|
|
497
|
-
CartContext,
|
|
498
|
-
CartProvider,
|
|
499
|
-
useCart
|
|
500
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/components/Sales/Cart/serve.ts
|
|
20
|
-
var serve_exports = {};
|
|
21
|
-
__export(serve_exports, {
|
|
22
|
-
checkBeforeAddToCartApi: () => checkBeforeAddToCartApi,
|
|
23
|
-
getResourceListApi: () => getResourceListApi
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(serve_exports);
|
|
26
|
-
var import_utils = require("../../../utils");
|
|
27
|
-
var getResourceListApi = () => {
|
|
28
|
-
return import_utils.request.getRequest().get("/api/resource/list", {});
|
|
29
|
-
};
|
|
30
|
-
var checkBeforeAddToCartApi = (data) => {
|
|
31
|
-
return import_utils.request.getRequest().post("/h5/eventbookingv2/order/check-config", data);
|
|
32
|
-
};
|
|
33
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
-
0 && (module.exports = {
|
|
35
|
-
checkBeforeAddToCartApi,
|
|
36
|
-
getResourceListApi
|
|
37
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* available_capacity(容量)、deadline_day(截止日期)、future_day(预定天数)
|
|
3
|
-
*/
|
|
4
|
-
export declare type TCartItemUnavailableType = 'available_capacity' | 'deadline_day' | 'future_day';
|
|
5
|
-
/**
|
|
6
|
-
* 商品不可用原因
|
|
7
|
-
*/
|
|
8
|
-
export interface IUnavailableResult {
|
|
9
|
-
event_unique_identifier: number;
|
|
10
|
-
relation_id: number;
|
|
11
|
-
product_id: number;
|
|
12
|
-
details?: Array<{
|
|
13
|
-
type: TCartItemUnavailableType;
|
|
14
|
-
}>;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* 更新失效的购物车商品
|
|
18
|
-
*/
|
|
19
|
-
export declare type TUpdateDisabledCartItem = (list: Array<IUnavailableResult>) => void;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
-
|
|
15
|
-
// src/components/Sales/Cart/types.ts
|
|
16
|
-
var types_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(types_exports);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface CheckoutData {
|
|
3
|
-
}
|
|
4
|
-
interface PayProps {
|
|
5
|
-
order_id: string;
|
|
6
|
-
amount: number;
|
|
7
|
-
sale_channel?: string;
|
|
8
|
-
}
|
|
9
|
-
interface CheckoutContextType {
|
|
10
|
-
onCheckBeforeBooking: (data: any) => Promise<{
|
|
11
|
-
result: boolean;
|
|
12
|
-
num: number;
|
|
13
|
-
}>;
|
|
14
|
-
onCheckout: (data: any) => Promise<any>;
|
|
15
|
-
onPay: (payProps: PayProps) => void;
|
|
16
|
-
createBooking: any;
|
|
17
|
-
checkBeforeBooking: any;
|
|
18
|
-
}
|
|
19
|
-
interface CheckoutProviderProps {
|
|
20
|
-
children: React.ReactNode;
|
|
21
|
-
}
|
|
22
|
-
export declare const CheckoutContext: React.Context<CheckoutContextType | undefined>;
|
|
23
|
-
export declare const CheckoutProvider: React.FC<CheckoutProviderProps>;
|
|
24
|
-
/**
|
|
25
|
-
* 使用步骤管理的Hook
|
|
26
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
27
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
28
|
-
*/
|
|
29
|
-
export declare const useCheckout: () => CheckoutContextType;
|
|
30
|
-
declare const _default: {
|
|
31
|
-
defaultState: CheckoutData;
|
|
32
|
-
};
|
|
33
|
-
export default _default;
|